-
Notifications
You must be signed in to change notification settings - Fork 0
Texture
Represents a texture with properties like name, axes, offsets, rotation, and scales.
Attribute | Type | Description | Note |
---|---|---|---|
name |
str |
The name of the texture | |
u_axis |
Vector3 |
The U-axis vector of the texture | |
u_offset |
float |
The U-axis offset of the texture | |
v_axis |
Vector3 |
The V-axis vector of the texture | |
v_offset |
float |
The V-axis offset of the texture | |
rotation |
float |
The rotation angle of the texture | Not used since rotation is implicit in the UV vectors. Currently it (maybe) cause problems with some map editor |
u_scale |
float |
The U-axis scale of the texture | |
v_scale |
float |
The V-axis scale of the texture |
Constructor method for the
Texture
class.
t = Texture('AAATRIGGER', Vector3(1,0,0), 0, Vector3(0,1,0), 0, 0, 0.5, 0.5)
Rotate (in degrees) the texture around the X-axis.
only for use internally in the Face class methods
Rotate (in degrees) the texture around the Y-axis.
only for use internally in the Face class methods
Rotate (in degrees) the texture around the Z-axis.
only for use internally in the Face class methods
Rotate (in degrees) the texture around a specified axis.
only for use internally in the Face class methods
Apply a 3x3 matrix transformation to the texture axes.
only for use internally in the Face class methods
Update the texture offset based on a displacement vector.
only for use internally in the Face class methods
Return a string representation of the texture.
TEXTURENAME [ vx vy vz u_offset ] [ vx vy vz v_offset ] rotation u_scale v_scale
Return the normal vector of the texture.
normal = t.normal