Difference between revisions of "PRIM MATERIAL LIGHT"

From Second Life Wiki
Jump to: navigation, search
m (New page: {{LSL Constant |name=PRIM_MATERIAL_LIGHT |type=integer |value=7 |desc=This constant and it's underlying functionality is deprecated.<br/> Light is no longer a prim property, it is now a fa...)
 
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{LSL Constant
 
{{LSL Constant
 +
|inject-1={{LSL_Generic/deprecated|none}}
 
|name=PRIM_MATERIAL_LIGHT
 
|name=PRIM_MATERIAL_LIGHT
 
|type=integer
 
|type=integer
Line 10: Line 11:
 
{{LSL Constants/PrimitiveParams/materials|table=*|sortable=*}}
 
{{LSL Constants/PrimitiveParams/materials|table=*|sortable=*}}
 
{{{!}}
 
{{{!}}
 +
{{LSL ConstRow|PRIM_POINT_LIGHT}}
 
|functions=
 
|functions=
 
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
 
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
Line 16: Line 18:
 
|events=
 
|events=
 
{{LSL DefineRow||[[changed]]|}}
 
{{LSL DefineRow||[[changed]]|}}
 +
|history=
 +
Lighting in SL has had a complex history <!--and for the sake of time I'm not going to look up the dates-->, for a long time SL had software lighting but it was a major bottle neck for SL rendering. <!--if memory serves--> It was with the 2.0 rendering engine that LL dropped software lighting and introduced [[PRIM_FULLBRIGHT|FullBright]], <!-- which got worked into 1.8? 1.12? 1.13? I forget--> most applications of lighting at that time were to make prims fullbright (lighting causes colors to dull). Later on lighting was reintroduced this time as hardware lighting.
 
|location
 
|location
 
|cat1=Prim/Materials
 
|cat1=Prim/Materials

Latest revision as of 21:05, 24 April 2010

Emblem-important.png Deprecated integer
(This constant has been deprecated.)

Description

Constant: integer PRIM_MATERIAL_LIGHT = 7;

The integer constant PRIM_MATERIAL_LIGHT has the value 7

This constant and it's underlying functionality is deprecated.
Light is no longer a prim property, it is now a face property. The same functionality is reproduced with [ PRIM_FULLBRIGHT, ALL_SIDES, TRUE ]

Caveats

  • This constant has been deprecated.
All Issues ~ Search JIRA for related Bugs

Related Articles

Constants

•  PRIM_MATERIAL
material Flags Description Friction Restitution
PRIM_MATERIAL_STONE 0 stone 0.8 0.4
PRIM_MATERIAL_METAL 1 metal 0.3 0.4
PRIM_MATERIAL_GLASS 2 glass 0.2 0.7
PRIM_MATERIAL_WOOD 3 wood 0.6 0.5
PRIM_MATERIAL_FLESH 4 flesh 0.9 0.3
PRIM_MATERIAL_PLASTIC 5 plastic 0.4 0.7
PRIM_MATERIAL_RUBBER 6 rubber 0.9 0.9
PRIM_MATERIAL_LIGHT 7 light, DEPRECATED: Looks the same as [ PRIM_FULLBRIGHT, ALL_SIDES, TRUE ] 0.6 0.5
•  PRIM_POINT_LIGHT

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Deep Notes

History

Lighting in SL has had a complex history , for a long time SL had software lighting but it was a major bottle neck for SL rendering. It was with the 2.0 rendering engine that LL dropped software lighting and introduced FullBright, most applications of lighting at that time were to make prims fullbright (lighting causes colors to dull). Later on lighting was reintroduced this time as hardware lighting.

Search JIRA for related Issues

Signature

integer PRIM_MATERIAL_LIGHT = 7;