TexGen (Material stage keyword)
From modwiki
Description
The texgen stage material keyword modifies the texture co-ordinates of the associated map as required by certain effects, such as skyboxes.
Usage
texGen [type]
Parameters
Use only one of the following in [type]:
- normal - ?
- skybox - Set the appropriate texture coordinates for a skybox. The associated stage should be a cameraCubeMap.
- wobblesky x y z - Same as "skybox", but rotate the coordinates according to the axis given
- reflect - Use the defined stage map for environment mapping.
Example
The following is a typical skybox map stage.
{
blend add
cameraCubeMap env/someskymap
texgen skybox
}
Notes
Setting the "z" component of "wobblesky" to a positive value causes the skybox to rotate continuously around the vertical axis. This is used in Doom 3 in some of the Hell levels. See also the how to add a sky page.

