Difference between revisions of "PRIM TEXGEN"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 47: Line 47:
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[changed]]|}}
|location
|location
|cat1=Face
|cat1
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 22:28, 1 July 2012

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

Caveats


Related Articles

Constants

•  CHANGED_TEXTURE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_TEXGEN = 22;