Shader Txt (Legacy)
- Last UpdatedApr 02, 2025
- 2 minute read
The Txt shader has the following characteristics.
|
Txt |
Textured |
Explanation
This shader applies the texture to the triangles.
Code example
This is an example of Txt shader.
$Shader
{
szName = Txt
}
Input Data
Texture
-
Material ® DiffuseMap
-
UV Channel 1
-
Alpha Channel. If the bAlphaTransparency or bSolidAlphaTransparency parameter is True, it impacts the pixel opacity.
-
Must contain the Gloss Map values in the Alpha channel. The Gloss value scales the intensity of the specular. If the Gloss Map value is zero, the pixel will not have specular.
-
The Gloss value is also used for reflectivity. A value of 1 indicates total reflection. This value is multiplied by fReflectivity.
Parameters
bObjectSpace
-
Explicitly indicates whether this mesh will be exported to Object Space or World Space, regardless of export parameters.
-
If this parameter is not present, the export parameters will be used, otherwise they will be overridden by this value.
-
Default: The export parameters are used.
-
Range: True / False.
fTransparency
-
Transparency level of the mesh.
-
Default: 0.0
-
Range: [0..1] (1 = completely transparent)
bDoubleFace
-
Duplicate the faces by flipping the verse.
-
Default: False.
-
Range: True / False.
szAnimatedTexture
-
Indicates that the texture will be animated using the specified Animated Texture ID.
-
Default: Null.
iClipMap
-
The pixel is drawn only when the value of the texture alpha channel is greater than iClipMap.
-
If (alpha> iClipMap) ® render_pixel
-
iClipMap, bAlphaTransparency, bSolidAlphaTransparency can not exist at the same time.
-
The clipmap is not active in the case of reflective material
-
Default: -1
-
Valid values: -1, [0..255] (-1 = clipmap disabled)
fReflectivity
Level of reflectance of the material.
-
Default: -1.0 (reflectance off)
-
Range: -1, [0..1] (1 = completely reflective)
szReflectionTexture
-
ID of the ReflectionTexture to use if the fReflectivity parameter is active.
-
Default: Null.