Category:LSL Alpha
This is a historical wiki category. Explore the current topic guides →
LSL Header:
{{LSL Header|ml=*}}The term "Alpha" refers to how translucent an object (or, in this case, a prim) is. In Second Life, the alpha property is set by the scripting functions llSetAlpha, llSetLinkAlpha, llSetPrimitiveParams, and llSetLinkPrimitiveParams. These functions use a float value. When set to 0.0, the object/prim is fully transparent. When set to 1.0, the object is opaque.
Sometimes, Residents refer to a transparent texture as alpha texture. This is a texture with an alpha map, not to be confused with this prim property. See llSetTexture and TEXTURE_TRANSPARENT instead.
Build Mode
In Build Mode, the alpha is represented by a percentage, ranging from 0% to 100%. Take extra care when moving viewer transparency settings to scripts and back. In the editor a higher number is more transparent, while in scripts a higher number is less transparent.
Examples
Below are examples on how one may set the alpha of an object.
| Function | LSL Example & Description |
|---|---|
| llSetAlpha | This will set the object's sides' alpha to opaque, or 0%. |
| llSetLinkAlpha | This will set link-set's alpha to transparent, or 100%. |
| llSetPrimitiveParams | This will set the object's alpha to translucent, or 50%. |
| llSetLinkPrimitiveParams | This will set the link-set's alpha to translucent, or 50%. |
| llSetLinkPrimitiveParamsFast | This will set the link-set's alpha to translucent, or 50%. |
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.