GLTFOverride
Constants in the GLTFOverride enum.
// Colour and alphaOVERRIDE_GLTF_BASE_COLOR_FACTOR, vector // base colour tint, linear RGB (llsRGB2Linear)OVERRIDE_GLTF_BASE_ALPHA, float // used only with PRIM_GLTF_ALPHA_MODE_BLENDOVERRIDE_GLTF_BASE_ALPHA_MODE, integer // PRIM_GLTF_ALPHA_MODE_*OVERRIDE_GLTF_BASE_ALPHA_MASK, float // alpha cutoff for _MASK// SurfaceOVERRIDE_GLTF_METALLIC_FACTOR, float // 0 to 1OVERRIDE_GLTF_ROUGHNESS_FACTOR, float // 0 to 1OVERRIDE_GLTF_EMISSIVE_FACTOR, vector // emissive tint, linear RGBOVERRIDE_GLTF_BASE_DOUBLE_SIDED, integer // TRUE renders both sides
Constants
Colour and alpha
| Constant | Type | Value | Description |
|---|---|---|---|
OVERRIDE_GLTF_BASE_COLOR_FACTOR | integer | 1 | GLTF override setting used with llSetLinkGLTFOverrides to set the tinting color (specified in linear RGB) used for the base color. Use llsRGB2Linear to convert colors from Blinn-Phong to PBR. |
OVERRIDE_GLTF_BASE_ALPHA | integer | 2 | GLTF override setting used with llSetLinkGLTFOverrides to set the alpha for the face(s). Only impacts rendering when the alpha mode is set to PRIM_GLTF_ALPHA_MODE_BLEND. |
OVERRIDE_GLTF_BASE_ALPHA_MODE | integer | 3 | GLTF override setting used with llSetLinkGLTFOverrides to set the alpha mode on the face(s) to one of the valid blend modes. |
OVERRIDE_GLTF_BASE_ALPHA_MASK | integer | 4 | GLTF override setting used with llSetLinkGLTFOverrides to set the alpha cutoff level on the face(s) when the alpha mode is set to mask. |
Surface
| Constant | Type | Value | Description |
|---|---|---|---|
OVERRIDE_GLTF_METALLIC_FACTOR | integer | 6 | GLTF override setting used with llSetLinkGLTFOverrides to adjust the metallic factor on the specified face(s) to a value between 0 and 1. |
OVERRIDE_GLTF_ROUGHNESS_FACTOR | integer | 7 | GLTF override setting used with llSetLinkGLTFOverrides to adjust the roughness factor on the specified face(s) to a value between 0 and 1. |
OVERRIDE_GLTF_EMISSIVE_FACTOR | integer | 8 | GLTF override setting used with llSetLinkGLTFOverrides to set the tint (specified in linear RGB) used for the emissive texture on the face(s). |
OVERRIDE_GLTF_BASE_DOUBLE_SIDED | integer | 5 | GLTF override setting used with llSetLinkGLTFOverrides. If set to TRUE, the texture on the face(s) will be rendered as double-sided. |
Used by
llSetLinkGLTFOverridesfunctionSets or removes individual GLTF override parameters specified by params on face of the linked prim link.