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

AVEVA™ XR Studio

Shader Vc_Em_Bm

  • Last UpdatedJan 24, 2023
  • 2 minute read

The Vc_Em_Bm shader has the following characteristics.

Vc

Vertex Colored

Em

Environment Mapped

Bm

Bump Mapped

Explanation

  • Applies the environment map multiplied by the vertex color to the triangle.

  • The reflection vector used to access the EnvMap is disturbed by the BumpMap.

Code example

This is an example of Vc_Em_Bm shader.

$Shader

{

szName = Vc_Em_Bm

szCubeMap = Cube.dds

fBumpiness = 0.65

}

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.

NormalMap / HeightMap

  • By default the texture is intended as NormalMap

  • Material ® BumpMap

  • UV Channel 1

  • To use a HeightMap, name the texture xxx_hm.xxx. This will be converted inside the engine into a NormalMap.

  • Dark colors indicate minimum height; clear colors indicate greater height.

  • The Alpha channel must contain Gloss Map values. The Gloss value enhances, or scales, specular intensity for pixels. If the gloss value is zero, the pixel will not have specular quality.

  • 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.

szRealTimeCubeMap / szCubeMap

  • szRealTimeCubeMap: ID of the CubeMap that will be created in real time using a $CubeMap Dummy Object.

  • szCubeMap: The name of the texture that will be loaded and used as CubeMap.

  • szRealTimeCubeMap and szCubeMap can not exist at the same time.

fHeightMapBumpiness

  • Bumpiness when the bump texture is a HeightMap.

  • If multiple objects share the same HeightMap, the value of fHeightMapBumpiness will be the value of the first object that will load the texture.

  • Default: 10.0

  • Range: [0..inf]

fBumpiness

  • Value of "phase shift" of the reflection.

  • A value of 0.15 may be sufficient.

  • Default: 0.0

  • Range: [0..1]

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