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: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 {{GetSet|{{{1|}}}|get|set|/}} the glow of a prim's face}}}}
{{#vardefine:glow_const|{{LSL Const|PRIM_GLOW|integer|25|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the glow of a prim's face}}}}
{{#vardefine:facetable|{{#var:facetable}}
{{#vardefine:facetable|{{#var:facetable}}
{{!}}-
{{!}}-
{{!}} [ {{#var:glow_const}} ]
{{!}} [ {{#var:glow_const}} ]
{{!}} {{#var:return}} }}
{{!}} {{#var:return}} }}
}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:
{{LSL_Function/face|face|{{#var:glow_const}}|!footer=*|return={{#var:return}}}}
{{LSL_Function/face|face|{{#var:glow_const}}|!footer=*|return={{#var:return}}}}
}}{{LSL Constant
}}{{LSL Constant
|name=PRIM_GLOW
|name=PRIM_GLOW

Revision as of 19:46, 17 April 2008

Description

Constant: integer PRIM_GLOW = 25;

The integer constant PRIM_GLOW has the value 25

PRIM_GLOW is used to get or 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 ]


Related Articles

Constants

•  CHANGED_TEXTURE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_GLOW = 25;