Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Shader Vcc_Txt

  • Last UpdatedApr 02, 2025
  • 2 minute read

The Vcc_Txt shader has the following characteristics.

Vcc

Vertex Colored with Vertex Color Contribution

Txt

Textured

Explanation

  • The result will be an interpolation between Texture * VertexColor and Texture * VertexColor * fMul.

  • To decide which interpolation value to use, the average of VertexColor values is used, which we call VCSum.

VCSum

  • If VCSum is less than a threshold value (currently set at 0.5), then the final color will be Textured * VertexColor.

  • If VCSum is greater than the threshold value, then the final color will be interpolated to become Texture * VertexColor * fMul when VCSum becomes 1.

Image example

This is an example of the shader effect. The VertexColor does not have to be white and black. It can also be colored.

Code example

This is an example of Vcc_Txt shader.

$Shader

{

szName = Vcc_Txt

fMul = 1.5

}

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 parameter is True, it will indicate the opacity of the pixel.

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)

bAlphaTransparency

  • Activates alpha transparency by pixel. The value of the alpha channel of the texture indicates the opacity of the pixel.

  • A pixel value of 0 indicates total transparency; a value of 1 indicates total opacity.

  • bAlphaTransparency and bSolidAlphaTransparency can not exist simultaneously.

  • Default: False.

  • Range: True / False.

fMul

  • Multiplier of the Lcc component.

  • Default: 1

  • Range [-inf..inf] (1 = the parameter does not change the color)

In This Topic
TitleResults for “How to create a CRG?”Also Available in