PRIM RENDER MATERIAL
|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|
The integer constant PRIM_RENDER_MATERIAL has the value 43
Used to get or set the material settings of a prim's .
|• integer||face||–||face number or ALL_SIDES|
|• string||material||–||a material in the inventory of the prim this script is in or a UUID of a material|
- 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.
- If UUID or it is not a material then an error is shouted on DEBUG_CHANNEL. is missing from the prim's inventory and it is not a
- If UUID then there are no new asset permissions consequences for the object.
- The resulting object develops no new usage restrictions that might have occurred if the asset had been placed in the prims inventory.
llSetPrimitiveParams([ PRIM_RENDER_MATERIAL, ALL_SIDES, my_material ]); llSetPrimitiveParams([ PRIM_RENDER_MATERIAL, ALL_SIDES, llGetInventoryName(INVENTORY_MATERIAL, 0) ]); llSetPrimitiveParams([ PRIM_RENDER_MATERIAL, 0, my_material ]);