CommonSurfaceShader (Standard name: SurfaceShader)
Implements the Blinn-Phong BRDF with normal mapping and a perfect specular component.
Inheritance
Code
XML encoding
<CommonSurfaceShader logFeature='' alphaTextureChannelMask='a' alphaTextureCoordinatesId='0' alphaTextureId='-1' invertAlphaTexture='FALSE' alphaFactor='1' normalBias='-1 -1 -1' normalScale='2 2 2' textureTransformEnabled='0 0 0 0 0 0 0 0' fresnelBlend='0' relativeIndexOfRefraction='1' environmentTextureChannelMask='rgb' environmentTextureCoordinatesId='0' environmentTextureId='-1' environmentFactor='1 1 1' transmissionTextureCoordinatesId='0' transmissionTextureChannelMask='rgb' transmissionTextureId='-1' transmissionFactor='0 0 0' reflectionTextureCoordinatesId='0' reflectionTextureChannelMask='rgb' reflectionFactor='0 0 0' reflectionTextureId='-1' normalTextureChannelMask='rgb' normalTextureCoordinatesId='0' normalTextureId='-1' normalFormat='UNORM' normalSpace='TANGENT' shininessTextureChannelMask='a' shininessTextureId='-1' shininessTextureCoordinatesId='0' shininessFactor='0.2' specularTextureChannelMask='rgb' specularTextureCoordinatesId='0' specularTextureId='-1' specularFactor='0 0 0' diffuseTextureChannelMask='rgb' diffuseTextureId='-1' diffuseTextureCoordinatesId='0' diffuseFactor='0.8 0.8 0.8' ambientTextureChannelMask='rgb' ambientTextureCoordinatesId='0' ambientTextureId='-1' ambientFactor='0.2 0.2 0.2' emissiveTextureChannelMask='rgb' emissiveTextureCoordinatesId='0' emissiveTextureId='-1' emissiveFactor='0 0 0' tangentTextureCoordinatesId='-1' binormalTextureCoordinatesId='-1' />
Classic encoding
CommonSurfaceShader { logFeature [""] alphaTextureChannelMask "a" alphaTextureCoordinatesId 0 alphaTextureId -1 invertAlphaTexture FALSE alphaFactor 1 normalBias -1 -1 -1 normalScale 2 2 2 textureTransformEnabled [0 0 0 0 0 0 0 0] fresnelBlend 0 relativeIndexOfRefraction 1 environmentTextureChannelMask "rgb" environmentTextureCoordinatesId 0 environmentTextureId -1 environmentFactor 1 1 1 transmissionTextureCoordinatesId 0 transmissionTextureChannelMask "rgb" transmissionTextureId -1 transmissionFactor 0 0 0 reflectionTextureCoordinatesId 0 reflectionTextureChannelMask "rgb" reflectionFactor 0 0 0 reflectionTextureId -1 normalTextureChannelMask "rgb" normalTextureCoordinatesId 0 normalTextureId -1 normalFormat "UNORM" normalSpace "TANGENT" shininessTextureChannelMask "a" shininessTextureId -1 shininessTextureCoordinatesId 0 shininessFactor 0.2 specularTextureChannelMask "rgb" specularTextureCoordinatesId 0 specularTextureId -1 specularFactor 0 0 0 diffuseTextureChannelMask "rgb" diffuseTextureId -1 diffuseTextureCoordinatesId 0 diffuseFactor 0.8 0.8 0.8 ambientTextureChannelMask "rgb" ambientTextureCoordinatesId 0 ambientTextureId -1 ambientFactor 0.2 0.2 0.2 emissiveTextureChannelMask "rgb" emissiveTextureCoordinatesId 0 emissiveTextureId -1 emissiveFactor 0 0 0 tangentTextureCoordinatesId -1 binormalTextureCoordinatesId -1 }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
isSelected | SFBool | outputOnly | The isSelected output field is used to indicate that this shader instance is the one selected for use by the browser. A TRUE value indicates that this instance is in use. | |||
isValid | SFBool | outputOnly | The isValid field is used to indicate whether the current shader objects can be run as a shader program. | |||
activate | SFBool | inputOnly | The activate field forces the shader to activate the contained objects. | |||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |