Skip to content
lsl.devlsl.devLSL Dev

Constants in the GLTFAlphaMode enum.

All constant groups

At a glance, from the LSL definitions
integer PRIM_GLTF_ALPHA_MODE_BLEND = 1;  // GLTF alpha mode setting for PRIM_GLTF_BASE_COLOR.integer PRIM_GLTF_ALPHA_MODE_MASK = 2;  // GLTF alpha mode setting for PRIM_GLTF_BASE_COLOR.integer PRIM_GLTF_ALPHA_MODE_OPAQUE = 0;  // GLTF alpha mode setting for PRIM_GLTF_BASE_COLOR.

Constants

ConstantTypeValueDescription
PRIM_GLTF_ALPHA_MODE_BLENDinteger1GLTF alpha mode setting for PRIM_GLTF_BASE_COLOR. Renders the material with transparency (alpha blending) in linear color space. Transparency from the texture is multiplied by the material's opacity multiplier. Note: This mode can suffer from depth sorting and performance issues.
PRIM_GLTF_ALPHA_MODE_MASKinteger2GLTF alpha mode setting for PRIM_GLTF_BASE_COLOR. Renders the material as fully opaque where the alpha value is greater than the alpha cutoff, and fully transparent otherwise.
PRIM_GLTF_ALPHA_MODE_OPAQUEinteger0GLTF alpha mode setting for PRIM_GLTF_BASE_COLOR. Ignores the alpha channel entirely and renders the face material as completely opaque.