Shader Vc_Txt_Sp_Et
- Last UpdatedApr 02, 2025
- 2 minute read
The Vc_Txt_Sp_Et shader has the following characteristics.
|
Vc |
Vertex Colored |
|
Txt |
Textured |
|
Sp |
Specular |
|
Et |
Enlighten |
Explanation
-
Makes an interpolation between:
-
(A) Texture * VertexColor
-
(B) Texture * c3Color * fMultiplier
-
-
Interpolation depends on the alpha of the pixel:
-
If the value is close to 0 it is used (A),
-
If the value is close to 1 it is used (B).
-
-
Adds the specular.
-
Supports only one light, which is managed as omnidirectional without range.
Code example
This is an example of Vc_Txt_Sp_Et shader.
$Shader
{
szName = Vc_Txt_Sp_Et
szLight = Omni001
fMultiplier = 2.0
c3Color = 1.0 1.0 0.4
}
Input Data
Vertex Color
-
If there is a valid Radiosity solution on this object, the vertex color is taken from the solution.
-
If a Radiosity solution is not present or invalid, or if the bWireframe parameter is active, the vertex color is taken from the properties of the mesh. Therefore, the vertex color will be the color of the mesh.
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.
Specular Color
-
Material ® SpecularColor
Specular Intensity
-
Material ® SpecularHilights ® SpecularLevel
-
Increases the intensity and the size of the highlight.
Specular Glossiness
-
Material ® SpecularHilights ® Glossiness
-
Increasing this value increases the "shininess" of the object, so there will be a narrower highlight.
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.
szLight
-
Name of the light that will illuminate the object. If not specified, the result will be unpredictable.
fMultiplier
-
Multiplication value of c3Color.
-
Default: 1.0
-
Range: [-inf..inf]
c3Color
-
Color that will be multiplied.
-
Default: 1 1 1
-
RGB: [0..1]