Template:LSL Constants/GLTF Blend Modes

From Second Life Wiki
Revision as of 16:03, 12 April 2025 by Rider Linden (talk | contribs) (Created page with "{| class="sortable" {{Prettytable}} |-{{Hl2}} !GLTF Alpha Mode !value !description |- | {{LSL Const|PRIM_GLTF_ALPHA_MODE_OPAQUE|integer|0|c=Ignore the alpha value and render t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GLTF Alpha Mode value description
PRIM_GLTF_ALPHA_MODE_OPAQUE 0 Ignore the alpha value and render the material as opaque.
PRIM_GLTF_ALPHA_MODE_BLEND 1 Render the material with transparency determined by the alpha value. Blending is done in linear color space. As is the case for Blinn-Phong as well, this mode suffers from depth sorting and performance issues. Use alpha mask instead when possible.
PRIM_GLTF_ALPHA_MODE_MASK 2 Render the material as fully opaque where the alpha value is greater than the alpha cutoff, and otherwise render the material as fully transparent.