Skip to content
lsl.devlsl.devLSL Dev

PRIM_GLTF_METALLIC_ROUGHNESS

constant
Constant
integer PRIM_GLTF_METALLIC_ROUGHNESS = 47;

Prim parameter to get or set the GLTF occlusion/metallic/roughness override of a face. Requires face, texture, repeats, offsets, rotation, metallic_factor, and roughness_factor arguments.

Constant groups

PrimParam · PrimParamGet

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

Used to get or set the GLTF occlusion/metallic/roughness 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.
  • 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.