Difference between revisions of "PRIM BUMP SHINY"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<onlyinclude>{{#if: | <onlyinclude>{{#if: | ||
{{#vardefine:return|[ {{HoverLink| | {{#vardefine:return|[ {{HoverLink|PRIM_SHINY_NONE|(0) integer shiny}}, {{HoverLink|PRIM_BUMP_NONE|(0) integer bump}} ]}} | ||
{{#vardefine:bumpshiny_const|{{LSL Const|PRIM_BUMP_SHINY|integer|19|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the bump and shiny setting of a prim's face}}}} | {{#vardefine:bumpshiny_const|{{LSL Const|PRIM_BUMP_SHINY|integer|19|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the bump and shiny setting of a prim's face}}}} |
Revision as of 16:18, 17 April 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_BUMP_SHINY = 19;The integer constant PRIM_BUMP_SHINY has the value 19
Used to get or set the bump and shiny settings of the prim's face.
shiny & bump Flags | Description | ||||||
---|---|---|---|---|---|---|---|
PRIM_SHINY_NONE | 0 | none | |||||
PRIM_SHINY_LOW | 1 | low | |||||
PRIM_SHINY_MEDIUM | 2 | medium | |||||
PRIM_SHINY_HIGH | 3 | high | |||||
PRIM_BUMP_NONE | 0 | none: no bump map | |||||
PRIM_BUMP_BRIGHT | 1 | brightness: generate from highlights | |||||
PRIM_BUMP_DARK | 2 | darkness: generate from lowlights | |||||
PRIM_BUMP_WOOD | 3 | woodgrain | |||||
PRIM_BUMP_BARK | 4 | bark | |||||
PRIM_BUMP_BRICKS | 5 | bricks | |||||
PRIM_BUMP_CHECKER | 6 | checker | |||||
PRIM_BUMP_CONCRETE | 7 | concrete | |||||
PRIM_BUMP_TILE | 8 | crustytile | |||||
PRIM_BUMP_STONE | 9 | cutstone: blocks | |||||
PRIM_BUMP_DISKS | 10 | discs: packed circles | |||||
PRIM_BUMP_GRAVEL | 11 | gravel | |||||
PRIM_BUMP_BLOBS | 12 | petridish: blobby amoeba like shapes | |||||
PRIM_BUMP_SIDING | 13 | siding | |||||
PRIM_BUMP_LARGETILE | 14 | stonetile | |||||
PRIM_BUMP_STUCCO | 15 | stucco | |||||
PRIM_BUMP_SUCTION | 16 | suction: rings | |||||
PRIM_BUMP_WEAVE | 17 | weave |
[ PRIM_BUMP_SHINY, integer face, integer shiny, integer bump ]
[ PRIM_BUMP_SHINY, integer face, integer shiny, integer bump ]• integer | face | – | face number or ALL_SIDES | |
• integer | shiny | – | PRIM_SHINY_* flag | |
• integer | bump | – | PRIM_BUMP_* flag |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
llGetPrimitiveParams([ PRIM_BUMP_SHINY, integer face ]);
llGetPrimitiveParams([ PRIM_BUMP_SHINY, integer face ]);Returns the list [ integer shiny, integer bump ]
• integer | face | – | face number or ALL_SIDES | ||
• integer | shiny | – | PRIM_SHINY_* flag | ||
• integer | bump | – | PRIM_BUMP_* flag |
Caveats
- If face is ALL_SIDES then the PRIM_BUMP_SHINY works on all sides.
- If face indicates a face that does not exist the PRIM_BUMP_SHINY return is [ PRIM_SHINY_NONE, PRIM_BUMP_NONE ]
Caveats
- If face is ALL_SIDES then the PRIM_BUMP_SHINY works on all sides.
- If face indicates a face that does not exist the PRIM_BUMP_SHINY return is [ PRIM_SHINY_NONE, PRIM_BUMP_NONE ]
Related Articles
Constants
• | CHANGED_TEXTURE? |
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams |
Events
• | changed |