Difference between revisions of "PRIM GLOW"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 23: Line 23:
|pa={{LSL Constant/List|i_front=[ {{#var:glow_const}}, |i_end= ]
|pa={{LSL Constant/List|i_front=[ {{#var:glow_const}}, |i_end= ]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|toc=llSetPrimitiveParams
|i1_type=integer|i1_name=face
|i1_type=integer|i1_name=face
|i2_type=float|i2_name=intensity}}
|i2_type=float|i2_name=intensity}}
Line 28: Line 29:
|r_front=Returns the list [ |r_end= ]
|r_front=Returns the list [ |r_end= ]
|text='''Caveats:'''
|text='''Caveats:'''
{{#var:caveats}}
{{#var:caveats}}{{#vardefine:caveats}}
|toc=llGetPrimitiveParams
|i1_type=integer|i1_name=face
|i1_type=integer|i1_name=face
|r1_type=float|r1_name=intensity
|r1_type=float|r1_name=intensity
Line 42: Line 44:
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[changed]]|}}
|location
|location
|history=Added in client version 1.20
|cat1=Face
|cat1=Face
|cat2=Prim
|cat2=Prim

Revision as of 10:54, 23 May 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.

llSetPrimitiveParams

[ 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

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 ]

Related Articles

Constants

•  CHANGED_TEXTURE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Deep Notes

History

Added in client version 1.20

Search JIRA for related Issues

Signature

integer PRIM_GLOW = 25;