5.86. VertexShader (property)

<vertexShader> ‐ A vertex shader program

5.86.1. Attributes

NameTypeDefaults
xlink:hrefURINone (required)

5.86.2. Description

This element defines a vertex shader program that is used by a shader and defined as a child element of the shader element. The vertex programs are written in Cg language http://www.nvidia.com/developer that is documented in the Cg language online reference manual http://www.nvidia.com/developer.

The program is compiled by the Cg compiler (that must be installed on the platform). The external file reference, given by the xlink:href attribute, defines the URI reference (Uniform Resource Identifier) of the file that contains the bitmap image. The shader_cg_programs attribute of the texture_display element in the configuration file gives the path that is used to look for the vertex programs.

5.86.3. Expected child

None.

5.86.4. Example

The example below defines a vertex shader program named roubaud789-VP.cg.

<vertexShader xlink:href="roubaud789-VP.cg"/>