Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
glsl::UniversalSurface_vertex_glsl Class Reference


Declares the input variables and provides a helper function transform() that computes the object-to-world space transformation and related vertex attributes. More...

Public Member Functions

void UniversalSurface_transform (in vec4 osVertex, in vec3 osNormal, in vec4 osPackedTangent, in vec2 texCoord0, in vec2 texCoord1, in vec4 vColor)
 

Public Attributes

out Point3 csPosition
 
in vec3 g3d_Normal
 
in vec4 g3d_PackedTangent
 
in vec2 g3d_TexCoord0
 
in vec2 g3d_TexCoord1
 
in vec4 g3d_Vertex
 
out Vector3 tan_Z
 This is the normal in world space. More...
 
out Point2 texCoord
 
out Point3 wsPosition
 

Detailed Description


Declares the input variables and provides a helper function transform() that computes the object-to-world space transformation and related vertex attributes.

This is packaged separately from UniversalSurface_render.vrt to make it easy to compute the object-space positions procedurally in related shaders but still use the material and lighting model from UniversalSurface.

Member Function Documentation

◆ UniversalSurface_transform()

void glsl::UniversalSurface_vertex_glsl::UniversalSurface_transform ( in vec4  osVertex,
in vec3  osNormal,
in vec4  osPackedTangent,
in vec2  texCoord0,
in vec2  texCoord1,
in vec4  vColor 
)
inline

Member Data Documentation

◆ csPosition

out Point3 glsl::UniversalSurface_vertex_glsl::csPosition

◆ g3d_Normal

in vec3 glsl::UniversalSurface_vertex_glsl::g3d_Normal

◆ g3d_PackedTangent

in vec4 glsl::UniversalSurface_vertex_glsl::g3d_PackedTangent

◆ g3d_TexCoord0

in vec2 glsl::UniversalSurface_vertex_glsl::g3d_TexCoord0

◆ g3d_TexCoord1

in vec2 glsl::UniversalSurface_vertex_glsl::g3d_TexCoord1

◆ g3d_Vertex

in vec4 glsl::UniversalSurface_vertex_glsl::g3d_Vertex

◆ tan_Z

out Vector3 glsl::UniversalSurface_vertex_glsl::tan_Z

This is the normal in world space.

◆ texCoord

out Point2 glsl::UniversalSurface_vertex_glsl::texCoord

◆ wsPosition

out Point3 glsl::UniversalSurface_vertex_glsl::wsPosition

documentation generated on Wed Nov 24 2021 08:02:04 using doxygen 1.8.15