Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
oivShaderVariables.h
Go to the documentation of this file.
1#ifndef OIV_SHADER_VARIABLES_H
2#define OIV_SHADER_VARIABLES_H
3
4/*****************************************************************************/
15
22vec4 OivFragmentTexCoord( in int unit );
23
34
43vec4 OivFrontColor( in int index );
44
53vec4 OivBackColor( in int index );
54
63vec4 OivTexCoord( in int index, in int unit );
64
73float OivFogFragCoord( in int index );
74
75/*****************************************************************************/
85
97void OivSetFrontColor( in vec4 color );
98
110void OivSetBackColor( in vec4 color );
111
123void OivSetTexCoord( in int unit, in vec4 coord );
124
136void OivSetFogFragCoord( in float coord );
137
145void OivFragmentOutput( in int bufferIndex, in vec4 outputValue );
146
155void OivFragmentOutput( in vec4 outputValue );
156
157/*****************************************************************************/
178void OivSetupVertex( in int inIndex );
179
194
195#endif /* OIV_SHADER_VARIABLES_H */
void OivSetFogFragCoord(in float coord)
Set the fog frag coord of the output vertex for the next shader stage.
vec4 OivTexCoord(in int index, in int unit)
Get the texture coordinates of the input vertex at index.
void OivSetBackColor(in vec4 color)
Set the back color of the output vertex for the next shader stage.
void OivSetTexCoord(in int unit, in vec4 coord)
Set the texture coordinates of the output vertex for the next shader stage.
vec4 OivBackColor(in int index)
Get the back color of the input vertex or fragment at index.
void OivSetFrontColor(in vec4 color)
Set the front color of the output vertex for the next shader stage.
float OivFogFragCoord()
Get the fog frag coord of the input vertex or fragment.
void OivInitVertexData()
OUT.
vec4 OivFrontColor(in int index)
Get the front color of the input vertex or fragment at index.
vec4 OivFragmentTexCoord(in int unit)
Get the interpolated texture coordinates for this fragment.
vec4 OivFragmentColor()
IN.
void OivSetupVertex()
Copy variables from the input vertex to the output vertex.
void OivFragmentOutput(in int bufferIndex, in vec4 outputValue)
Set the output value of the current fragment in the buffer specified by bufferIndex.