Difference between revisions of "PRIM GLOW"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<onlyinclude>{{#if:
<onlyinclude>{{#if:
{{#vardefine:p_intensity_desc|ranges from 0.0 to 1.0}}
{{#vardefine:p_intensity_desc|ranges from 0.0 to 1.0}}
{{#vardefine:glow_return|[&nbsp;{{HoverText|0.0|float intensity}}&nbsp;]}}
{{#vardefine:return|[&nbsp;{{HoverText|0.0|float intensity}}&nbsp;]}}
{{#vardefine:glow_const|{{LSL Const|PRIM_GLOW|integer|25|c=Used to get/set the glow of a prim's face}}}}
{{#vardefine:glow_const|{{LSL Const|PRIM_GLOW|integer|25|c=Used to get/set the glow of a prim's face}}}}
{{#vardefine:comment2|{{#var:comment}}}}
{{#vardefine:facetable|{{#var:facetable}}
{{#vardefine:facetable|{{#var:facetable}}
{{!}}-
{{!}}-
{{!}} [ {{#var:glow_const}} ]
{{!}} [ {{#var:glow_const}} ]
{{!}} {{#var:glow_return}} }}
{{!}} {{#var:return}} }}
}}</onlyinclude>{{LSL_Function/face|face|{{#var:glow_const}}|!footer=*|return={{#var:glow_return}}}}
}}</onlyinclude>{{LSL_Function/face|face|{{#var:glow_const}}|!footer=*|return={{#var:return}}}}
{{LSL Constant
{{LSL Constant
|name=PRIM_GLOW
|name=PRIM_GLOW

Revision as of 14:38, 17 April 2008

Description

Constant: integer PRIM_GLOW = 25;

The integer constant PRIM_GLOW has the value 25

PRIM_GLOW is used to get and set the glow status of the face. Use the integer number 25 if the compiler rejects the named constant.

[ PRIM_GLOW, integer face, float intensity ]

[ PRIM_GLOW, integer face, float intensity ]
• integer face face number or ALL_SIDES
• float intensity ranges from 0.0 to 1.0

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams([ PRIM_GLOW, integer face ]);

llGetPrimitiveParams([ PRIM_GLOW, integer face ]);

Returns the list [ float intensity ]

• integer face face number or ALL_SIDES

• float intensity ranges from 0.0 to 1.0

Caveats:

  • If face is ALL_SIDES then the PRIM_GLOW works on all sides.
  • If face indicates a face that does not exist the PRIM_GLOW return is [ 0.0 ]

Caveats

  • If face is ALL_SIDES then the PRIM_GLOW works on all sides.
  • If face indicates a face that does not exist the PRIM_GLOW return is [ 0.0 ]
All Issues ~ Search JIRA for related Bugs

Related Articles

Constants

•  CHANGED_TEXTURE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_GLOW = 25;