Skip to content
lsl.devlsl.devLSL Dev

Constants in the GLTFOverride enum.

All constant groups

At a glance, from the LSL definitions
// 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

ConstantTypeValueDescription
OVERRIDE_GLTF_BASE_COLOR_FACTORinteger1GLTF 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_ALPHAinteger2GLTF 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_MODEinteger3GLTF 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_MASKinteger4GLTF override setting used with llSetLinkGLTFOverrides to set the alpha cutoff level on the face(s) when the alpha mode is set to mask.

Surface

ConstantTypeValueDescription
OVERRIDE_GLTF_METALLIC_FACTORinteger6GLTF 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_FACTORinteger7GLTF 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_FACTORinteger8GLTF 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_SIDEDinteger5GLTF override setting used with llSetLinkGLTFOverrides. If set to TRUE, the texture on the face(s) will be rendered as double-sided.

Used by