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

AVEVA™ XR Studio

Shader Vc_Txt_Lvl

  • Last UpdatedApr 02, 2025
  • 2 minute read

The Vc_Txt_Lvl shader has the following characteristics.

Vc

Vertex Colored

Txt

Textured

Lvl

Levels

Explanation

  • Multiplies the texture for the vertex color.

  • Applies the grayscale, if needed.

  • Applies the layers as the function Image ® Adjustments ® Levels of Photoshop.

  • Interpolates the retouched image with the original image based on the fLevelsIntensity parameter.

  • Uses the InLo and InHi parameters of Photoshop to speed up the shader.

Code example

This is an example of Vc_Txt_Lvl shader.

$Shader

{

szName = Vc_Txt_Lvl

fLevelsIntensity = 0.6

bGrayscale = true

byInLo = 0

byInHi = 164

}

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

Parameters

byInLo

  • Default: 0

  • Range: [0..254]

byInHi

  • Default: 255

  • Range: [1..255]

bGrayscale

  • Indicates if the version of the leveled image will be in black and white.

  • Default: False.

  • Range: True / False.

fLevelsIntensity

  • Mixes value between the version of the leveled image and the non-leveled image.

  • Default: 1.0

  • Range: [0..1] (1 = completely leveled).

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.

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