H3D API
2.4.1
|
Struct used to define a varying variable in the shader. More...
#include <H3D/H3DGeneratedShaderNode.h>
Public Member Functions | |
VaryingVariable (const string &_name, const string &_type, const string &_calculation) | |
Constructor. | |
Public Attributes | |
string | name |
The name of the variable. | |
string | type |
The glsl type of the variable(int, mat3, sampler2D etc). | |
string | calculation |
String defining glsl code to set the value of the varying variable. More... | |
Struct used to define a varying variable in the shader.
string H3D::H3DGeneratedShaderNode::VaryingVariable::calculation |
String defining glsl code to set the value of the varying variable.
E.g. if name is "normal", calculation can be "normal = gl_NormalMatrix * gl_Normal;"