H3D API  2.4.1
Public Member Functions | Public Attributes | List of all members
H3D::H3DGeneratedShaderNode::VaryingVariable Struct Reference

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...
 

Detailed Description

Struct used to define a varying variable in the shader.

Member Data Documentation

◆ calculation

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;"


The documentation for this struct was generated from the following file: