PRIM ALPHA MODE
Looking for the current API? Open the PRIM_ALPHA_MODE reference →
Wiki description
Used to specify how the alpha channel of the diffuse texture should affect rendering of a prim’s face.
Examples
llSetPrimitiveParams([ PRIM_ALPHA_MODE, ALL_SIDES, PRIM_ALPHA_MODE_NONE, 0 ]);
llSetPrimitiveParams([ PRIM_ALPHA_MODE, ALL_SIDES, PRIM_ALPHA_MODE_MASK, 130 ]);Notes
- Note that as with PRIM_NORMAL and PRIM_SPECULAR, setting a custom (i.e. not PRIM_ALPHA_MODE_BLEND) alpha mode on a prim faces causes the linkset to use the new prim accounting system.
mask_cutoffis not used or stored unless the mode is set to PRIM_ALPHA_MODE_MASK.- To delete the material from
face, set thealpha_modeto PRIM_ALPHA_MODE_BLEND, in addition to clearing PRIM_NORMAL and PRIM_SPECULAR - If
faceindicates a face that exists but does not contain a material, the PRIM_ALPHA_MODE return is '[ PRIM_ALPHA_MODE_BLEND, 0 ]'
See also: functions
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.