Inventor/oivShapeAttribute.h File Reference

oiv_include <Inventor/oivShaderStages.h> More...

Go to the source code of this file.

Functions

vec4 OivVertexPosition ()
vec3 OivVertexNormal ()
vec4 OivVertexColor ()
vec4 OivVertexTextureCoordinate (int unit)

Detailed Description

oiv_include <Inventor/oivShaderStages.h>

This file contains fonction to acces vertex attributes.

Definition in file oivShapeAttribute.h.


Function Documentation

vec4 OivVertexColor (  ) 

Get the color of the current vertex.

Returns:
the color of the current vertex.
vec3 OivVertexNormal (  ) 

Get the normal of the current vertex.

Returns:
the normal of the current vertex.
vec4 OivVertexPosition (  ) 

Get the position of the current vertex.

Returns:
the position of the current vertex.
vec4 OivVertexTextureCoordinate ( int  unit  ) 

Get the texture coordinate of the current vertex.

Parameters:
unit specifies which texture unit between 0 and OivMaxTextureUnit()-1.
Returns:
the texture coordinate of the current vertex for a given texture unit.

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/