-
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.
-
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. Currently unused, since rotation is implicit in the uv axes -
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.
Return the normal vector of the texture.
normal = t.normal