Difference between revisions of "PRIM BUMP SHINY"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 30: Line 30:
|i2_type=integer|i2_name=shiny
|i2_type=integer|i2_name=shiny
|i3_type=integer|i3_name=bump
|i3_type=integer|i3_name=bump
|toc=llSetPrimitiveParams
}}
}}
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:bumpshiny_const}}, |i_end= ]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:bumpshiny_const}}, |i_end= ]);|
Line 35: Line 36:
|text=
|text=
====Caveats====
====Caveats====
{{#var:caveats}}
{{#var:caveats}}{{#vardefine:caveats}}
|i1_type=integer|i1_name=face
|i1_type=integer|i1_name=face
|r1_type=integer|r1_name=shiny
|r1_type=integer|r1_name=shiny
|r2_type=integer|r2_name=bump
|r2_type=integer|r2_name=bump
|toc=llGetPrimitiveParams
}}
}}
|constants=
|constants=

Revision as of 11:09, 23 May 2008

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_SHINY_A_SORT_HACK 3.5
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

llSetPrimitiveParams

[ 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

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

Caveats


Related Articles

Constants

•  CHANGED_TEXTURE?

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_BUMP_SHINY = 19;