Skip to content
lsl.devlsl.devLSL Dev

PRIM_GLTF_BASE_COLOR

constant
Constant
integer PRIM_GLTF_BASE_COLOR = 48;

Prim parameter to get or set the GLTF base color override of an object's face. Requires face, texture, repeats, offsets, rotation, linear_color (in linear space; use llsRGB2Linear), alpha_mode (PRIM_GLTF_ALPHA_MODE_*), alpha_cutoff, and double_sided arguments.

Constant groups

PrimParam · PrimParamGet

Other PrimParam values (42)
Other PrimParamGet values (40)

Used to get or set the GLTF base color override of an object’s face.

  • repeats is not only used to set the number of repeats but the sign of the individual components is also used to set the “Flip” attribute.
  • To clear any override parameters, supply an empty string ("") in the parameter slot.
  • tint_color is in linear RGB color space, unlike legacy tint that uses sRGB. Use llsRGB2Linear and llLinear2sRGB to perform conversions.
  • In the default texture mapping tg_type the texture repeats units are in texture repeats per face. In the planar texture mapping mode the texture repeats units are in texture repeats per half meter. This is in contrast to the in-world editing tool, in which the planar texture scaling units are repeats per meter.
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.