VertexParm (Material stage keyword)

Description

The vertexParm keyword instructs Doom 3 to pass the expressed value to a vertex program which must also be referenced in this stage via the vertexProgram keyword.

Usage

vertexParm [input], [value]

Parameters

  • [input] - The input or “slot” in which to pass the value to the vertex program.
  • [value] - The value to pass to the vertex program.

Example

distort the current frame using the normal map helmet_local.tga and heatHazeWithMaskAndVertex.vfp

{
   program                 heatHazeWithMaskAndVertex.vfp
   vertexParm              0               0                                          // texture scrolling
   vertexParm              1               10                                         // magnitude of the distortion
   fragmentMap             0               _currentRender
   fragmentMap             1               models/characters/sarge2/helmet_local.tga  // the normal map for distortion
}

Notes

None.