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

AVEVA™ XR Studio

Shader Txt_Lm_Lcc_Em_Pp_Sp (Legacy)

  • Last UpdatedApr 02, 2025
  • 3 minute read

The Txt_Lm_Lcc_Em_Pp_Sp shader has the following characteristics.

Txt

Textured

Lm_Lcc

Light Mapped with Lightmap Color Contribution + Contrast

Bm

Environment Mapped

Pp

Per Pixel (Intensity)

Sp

Specular

Explanation

  • Multiplies Texture * Lightmap * Lightmap.Alpha * fMul.

  • Interpolates this value with the CubeMap. The value of this interpolation (that is, if the pixel will take more cubemap than texture) is given by the pixel value in the OpacityMap * fCubeIntensity.

  • Adds the specular value.

  • In the version with AlphaTransparency, the alpha of the texture is scaled according to how much specular the pixel has. The more specular it is, the more the pixel will be opaque. The less that the pixel has specular, the more that opacity will be the alpha of the texture.

  • Supports only one light, which is managed as omnidirectional without range.

Code example

This is an example of Txt_Lm_Lcc_Em_Pp_Sp shader.

$Shader

{

szName = Txt_Lm_Lcc_Em_Pp_Sp

szLight = Omni001

szCubeMap = Cube.dds

fCubeIntensity = 0.4

fMul = 1.5

}

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

  • Alpha channel used to indicate the contribution of each pixel on the final pixel.

Opacitymap

  • Material ® OpacityMap

  • UV Channel 1

  • Alpha Texture (1-channel, monochromatic texture), contains the intensity of the CubeMap per pixel.

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.

szAnimatedLightmap

  • Indicates that the Lightmap will be animated using the specified Animated Texture ID.

  • Default: Null.

fMul

  • Multiplier of the Lcc component.

  • Default: 1

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

szLight

  • Name of the light that will illuminate the object. If not specified, the result will be unpredictable.

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.

fCubeIntensity

  • Intensity level of the CubeMap with respect to the Texture.

  • Default: 0.5

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

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.

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