Difference between revisions of "Category:LSL Alpha"

From Second Life Wiki
Jump to navigation Jump to search
(remark about alpha texture)
m
Line 7: Line 7:
Sometimes, [[Resident]]s refer to a transparent [[texture]] as ''alpha texture''. This is not to be confused with this prim property. See [[llSetTexture]] and [[TEXTURE_TRANSPARENT]] instead.
Sometimes, [[Resident]]s refer to a transparent [[texture]] as ''alpha texture''. This is not to be confused with this prim property. See [[llSetTexture]] and [[TEXTURE_TRANSPARENT]] instead.


{{LSLC|}}{{LSLC|Face}}
{{LSLC|}}{{LSLC|Face|Alpha}}

Revision as of 17:22, 19 October 2009

The term "Alpha" refers to how opaque or transparent an object (or, in this case, a prim) is. In Second Life, the alpha property is set by the scripting command llSetAlpha. This command uses a float value. When set to 0.0, the object/prim is fully invisible. When set to 1.0, the object is fully opaque.

In Build Mode, the alpha is represented by a percentage, ranging from 0% to 100%. 0% is like typing in llSetAlpha(1.0) in a script, and 100% is like typing llSetAlpha(0.0). There is a cap of 90%, but by using the llSetAlpha command, you can get around this.

Sometimes, Residents refer to a transparent texture as alpha texture. This is not to be confused with this prim property. See llSetTexture and TEXTURE_TRANSPARENT instead.