Difference between revisions of "PRIM TEXGEN"
Jump to navigation
Jump to search
m |
|||
Line 24: | Line 24: | ||
|pa={{LSL Constant/List|i_front=[ {{#var:texgen_const}}, |i_end= ] | |pa={{LSL Constant/List|i_front=[ {{#var:texgen_const}}, |i_end= ] | ||
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | |text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | ||
|toc=llSetPrimitiveParams | |||
|i1_type=integer|i1_name=face | |i1_type=integer|i1_name=face | ||
|i2_type=integer|i2_name=tg_type|i2_disp=mode}} | |i2_type=integer|i2_name=tg_type|i2_disp=mode}} | ||
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:texgen_const}}, |i_end= ]);| | |pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:texgen_const}}, |i_end= ]);| | ||
|r_front=Returns the list [ |r_end= ] | |r_front=Returns the list [ |r_end= ] | ||
|toc=llGetPrimitiveParams | |||
|text= | |text= | ||
====Caveats==== | ====Caveats==== |
Revision as of 09:58, 23 May 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_TEXGEN = 22;The integer constant PRIM_TEXGEN has the value 22
PRIM_TEXGEN is used to get and set the configure the texture mapping mode of the face.
mode Constants | Description | ||||||
---|---|---|---|---|---|---|---|
PRIM_TEXGEN_DEFAULT | 0 | The texture repeats units are in texture repeats per face. | |||||
PRIM_TEXGEN_PLANAR | 1 | The texture repeats units are in texture repeats per half meter. This is in contrast to the in-world editing tool, in which the planar texture scaling units are repeats per meter. |
llSetPrimitiveParams
[ PRIM_TEXGEN, integer face, integer mode ]• integer | face | – | face number or ALL_SIDES | |
• integer | mode | – | PRIM_TEXGEN_* flag |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_TEXGEN, integer face ]);Returns the list [ integer mode ]
• integer | face | – | face number or ALL_SIDES | ||
• integer | mode | – | PRIM_TEXGEN_* flag |
Caveats
- If face is ALL_SIDES then the PRIM_TEXGEN works on all sides.
- If face indicates a face that does not exist the PRIM_TEXGEN return is [ PRIM_TEXGEN_DEFAULT ]
Caveats
- If face is ALL_SIDES then the PRIM_TEXGEN works on all sides.
- If face indicates a face that does not exist the PRIM_TEXGEN return is [ PRIM_TEXGEN_DEFAULT ]
Related Articles
Constants
• | CHANGED_TEXTURE |
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams |
Events
• | changed |