PRIM TEXGEN

From Second Life Wiki

Jump to: navigation, search

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
PRIM_TEXGEN_PLANAR 1

[ PRIM_TEXGEN, integer face, integer mode ]

• integer face face number or ALL_SIDES
• integer mode PRIM_TEXGEN_* flag

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

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 function works on all sides.
  • If face indicates a face that does not exist the return is [ PRIM_TEXGEN_DEFAULT ]

Related Functions, Events & Constants

Constants

•  CHANGED_TEXTURE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed
Personal tools