Difference between revisions of "PRIM BUMP SHINY"
Jump to navigation
Jump to search
(New page: {{#if: {{LSL_Constants/PrimitiveParams}} }}{{LSL Constant |name=PRIM_TYPE_BUMP_SHINY |type=integer |value=19 |desc= |examples= |constants= |functions= {{LSL DefineRow||[[llSetPrimitivePara...) |
m |
||
Line 1: | Line 1: | ||
{{#if: | <onlyinclude>{{#if: | ||
{{ | |||
{{#vardefine:return|[ {{HoverLink|FALSE|(0) integer boolean}} ]}} | |||
{{#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:p_shiny_desc|PRIM_SHINY_* flag}} | |||
{{#vardefine:p_bump_desc|PRIM_BUMP_* flag}} | |||
{{#vardefine:facetable|{{#var:facetable}} | |||
{{!}}- | |||
{{!}} [ {{#var:bumpshiny_const}} ] | |||
{{!}} {{#var:return}} }} | |||
}}</onlyinclude>{{#if: | |||
{{LSL_Function/face|face|{{#var:bumpshiny_const}}|!footer=*|return={{#var:return}}}} | |||
}}{{LSL Constant | }}{{LSL Constant | ||
|name= | |name=PRIM_BUMP_SHINY | ||
|type=integer | |type=integer | ||
|value=19 | |value=19 | ||
|desc= | |desc=Used to get or set the bump and shiny settings of the prim's {{LSL Param|face}}. | ||
{{LSL_Constants/PrimitiveParams/bumpshiny|table=*|sortable=*}} | |||
|examples= | |examples= | ||
|pa={{LSL Constant/List|i_front=[ {{#var:bumpshiny_const}}, |i_end= ] | |||
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | |||
|i1_type=integer|i1_name=face | |||
|i2_type=integer|i2_name=shiny | |||
|i3_type=integer|i3_name=bump | |||
}} | |||
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:bumpshiny_const}}, |i_end= ]);| | |||
|r_front=Returns the list [ |r_end= ] | |||
|text= | |||
====Caveats==== | |||
{{#var:caveats}} | |||
|i1_type=integer|i1_name=face | |||
|r1_type=integer|r1_name=shiny | |||
|r2_type=integer|r2_name=bump | |||
}} | |||
|constants= | |constants= | ||
{{LSL DefineRow||[[CHANGED_TEXTURE]]?|}} | |||
|functions= | |functions= | ||
{{LSL DefineRow||[[llSetPrimitiveParams]]|}} | {{LSL DefineRow||[[llSetPrimitiveParams]]|}} |
Revision as of 15:44, 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 [ FALSE ]
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 [ FALSE ]
Related Articles
Constants
• | CHANGED_TEXTURE? |
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams |
Events
• | changed |