This article's documentation is for anything that uses the Source engine. Click here for more information.

Teeth

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)
Mouth is closed
Mouth is slightly open
Mouth is open

Teeth is a pixel shader available in all Source Source games. It is a shader for teeth that is used to dynamically adjust the brightness of the teeth based on how open the mouth is.

Note.pngNote:This shader is likely obsolete, as Valve hasn't used it for any of their recent games. Instead, they include teeth on their facemaps, using the shader VertexLitGeneric.

Parameters

Texture for the teeth.
Enables half-lambertian lighting. Default 1.
$clientshader "MouthShader"
Todo: What does this actually do?
Modifies the amount the teeth are brightened or darkened by. Default 1.
Forward direction vector for teeth lighting. Default "[1 0 0]".
[[$bumpmap|$bumpmap]] <texture> (DX9+)
Bumpmap for the teeth. Enables phong specular, and uses the alpha channel of the bumpmap as a mask if present.
Exponent for the specular. Overrides the bumpmap's alpha mask if one is present. Default 100.

Other parameters

Teeth are used on a model in Episode 1's intro cutscene. Adds another shader pass.
Requires $intro 1. How far into the warp animation we are.
Requires $intro 1. World-space location of the entity, required to correctly animate the warp.