Skip to content

llSetLinkGLTFOverrides

void llSetLinkGLTFOverrides(integer link, integer face, list options)

Sets or changes GLTF Overrides set on the selected faces.

Parameters
link (integer)
Link number to check.
face (integer)
Side to check for a PBR material. Use ALL_SIDES to check for all.
options (list)
List of individual overrides to set.

Toggle alpha on/off:

integer toggle;
default
{
touch_start(integer num_detected)
{
toggle=!toggle;
llSetLinkGLTFOverrides( LINK_THIS, 0, [
OVERRIDE_GLTF_BASE_ALPHA_MODE, PRIM_GLTF_ALPHA_MODE_BLEND,
OVERRIDE_GLTF_BASE_ALPHA, toggle]);
}
}
  • OVERRIDE_GLTF_BASE_COLOR_FACTOR and OVERRIDE_GLTF_BASE_ALPHA parameters are coupled. If an override is set for one parameter, then the other is automatically given an override. The default OVERRIDE_GLTF_BASE_COLOR_FACTOR is <1,1,1>, and the default OVERRIDE_GLTF_BASE_ALPHA is 1.0.