Difference between revisions of "CHANGED RENDER MATERIAL"
Jump to navigation
Jump to search
(Created page with "{{hint |mode=warning |title_desc=Future feature |desc=This function will be supported in the upcoming GLTF Materials project.</b><br/>Currently it will only work in support...") |
(Link to what a material IDs and overrides are) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|desc=This function will be supported in the upcoming GLTF Materials project.</b><br/>Currently it will only work in supported testing areas with a supported test viewer. | |desc=This function will be supported in the upcoming GLTF Materials project.</b><br/>Currently it will only work in supported testing areas with a supported test viewer. | ||
}} | }} | ||
[[Category:glTF]] | |||
{{LSL Constant | {{LSL Constant | ||
|name=CHANGED_RENDER_MATERIAL | |name=CHANGED_RENDER_MATERIAL | ||
|type=integer | |type=integer | ||
|value={{LSL Hex|0x1000}} | |value={{LSL Hex|0x1000}} | ||
|desc=Prim material ID | |desc=Prim [[PRIM_RENDER_MATERIAL|material ID]] or [[GLTF_Overrides|material overrides]] have changed on one or more faces. | ||
|examples= | |examples= | ||
Line 18: | Line 21: | ||
if (change & CHANGED_RENDER_MATERIAL) //note that it's & and not &&... it's bitwise! | if (change & CHANGED_RENDER_MATERIAL) //note that it's & and not &&... it's bitwise! | ||
{ | { | ||
llOwnerSay("The prim's material ID | llOwnerSay("The prim's material ID and/or overrides have changed on one or more faces."); | ||
} | } | ||
} | } |
Latest revision as of 08:55, 29 August 2023
Warning! Future feature | |
This function will be supported in the upcoming GLTF Materials project. |
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CHANGED_RENDER_MATERIAL = 0x1000;The integer constant CHANGED_RENDER_MATERIAL has the value 0x1000
Prim material ID or material overrides have changed on one or more faces.
Caveats
Related Articles
Functions
• | llSetRenderMaterial | |||
• | llGetRenderMaterial | |||
• | llSetPrimitiveParams | – | PRIM_RENDER_MATERIAL | |
• | llSetLinkPrimitiveParams | – | PRIM_RENDER_MATERIAL |
Events
• | changed |
Examples
default
{
changed(integer change)
{
if (change & CHANGED_RENDER_MATERIAL) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The prim's material ID and/or overrides have changed on one or more faces.");
}
}
}