Difference between revisions of "PRIM BUMP SHINY"

From Second Life Wiki
Jump to navigation Jump to search
m (oops)
m
Line 22: Line 22:
|type=integer
|type=integer
|value=19
|value=19
|desc=Used to get or set the [[Bump Mapping]] and {{LSL Param|shiny}} settings of the prim's {{LSL Param|face}}.
|desc=Used to get or set the [[Bump Mapping]] and {{LSLP|shiny}} settings of the prim's {{LSLP|face}}.
{{LSL_Constants/PrimitiveParams/bumpshiny|table=*|sortable=*}}
{{LSL_Constants/PrimitiveParams/bumpshiny|table=*|sortable=*}}
|examples=
|examples=

Revision as of 11:07, 8 June 2012

Description

Constant: integer PRIM_BUMP_SHINY = 19;

The integer constant PRIM_BUMP_SHINY has the value 19

Used to get or set the Bump Mapping 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;