Shader Txt_Lm_Cm (Legacy)
- Last UpdatedApr 02, 2025
- 1 minute read
The Txt_Lm_Cm shader has the following characteristics.
|
Txt |
Textured |
|
Lm |
Light Mapped |
|
Em |
Environment Mapped |
|
Cm |
Color Multiplied |
Explanation
This shader multiplies the texture for the Lightmap, then multiplies the result by the c3Color color parameter.
Code example
This is an example of Txt_Lm_Cm shader.
$Shader
{
szName = Txt_Lm_Cm
c3Color = 1 0.4 0.9
}
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.
Lightmap
-
Material ® AmbientMap
-
UV Channel 3
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.
szAnimatedLightmap
-
Indicates that the Lightmap will be animated using the specified Animated Texture ID.
-
Default: Null.
c3Color
-
Color that will be multiplied.
-
Default: 1 1 1
-
RGB: [0..1]