Difference between revisions of "Template:LSL Constants/PrimitiveParams/gltf caveats"

From Second Life Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Setting any property to the empty string ("") will unset it, causing the property of the underlying GLTF material asset to be used instead. Note that it is not possible to read properties of the underlying GLTF material asset from scripts. If a property is unset, it will appear to be the default value when read from a script.
This parameter's arguments are [[GLTF_Overrides|GLTF overrides]].
<br/>
 
Attempting to set this param on a face with [[llGetRenderMaterial|a material ID]] of [[NULL_KEY]] will clear most PRIM_GLTF_* properties on that face, with the exceptions of repeats, offsets, and rotation_in_radians.
{{KBwarning|Setting an argument to the empty string ("") will clear the respective override. <b>GLTF texture transforms are always overrides, so setting them to the empty string ("") will clear them.</b> See [[GLTF_Overrides#Examples|this example]] for a workaround. The SL team is [https://feedback.secondlife.com/ open to feedback] on LSL improvements for GLTF.}}
<br/>
Attempting to set this param on a face with a no-mod material will cause changes to be rejected, with the exceptions of repeats, offsets, and rotation_in_radians.
<br/>
<strong>Caveat:</strong> This parameter will be supported in the upcoming GLTF Materials project. Currently it will only work in supported testing areas with a supported test viewer.

Latest revision as of 11:28, 5 February 2024

This parameter's arguments are GLTF overrides.

KBwarning.png Warning: Setting an argument to the empty string ("") will clear the respective override. GLTF texture transforms are always overrides, so setting them to the empty string ("") will clear them. See this example for a workaround. The SL team is open to feedback on LSL improvements for GLTF.