Program (Material stage keyword)

From modwiki

Jump to: navigation, search

Description

The program keyword is an alias for the keywords fragmentProgram and vertexProgram.

Usage

program [prog]

Parameters

  • [prog] = The vfp file containing both the vertex and fragment programs to exectute.

Example

Distorts 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

Not available.


Personal tools
Main