GLTFAlphaMode
Constants in the GLTFAlphaMode enum.
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
| Constant | Type | Value | Description |
|---|---|---|---|
PRIM_GLTF_ALPHA_MODE_BLEND | integer | 1 | GLTF 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_MASK | integer | 2 | GLTF 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_OPAQUE | integer | 0 | GLTF alpha mode setting for PRIM_GLTF_BASE_COLOR. Ignores the alpha channel entirely and renders the face material as completely opaque. |