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


Provides helper transformation functions for universal surface. More...

Public Member Functions

mat4 getBoneMatrix (in sampler2D boneMatrixTexture, in int index)
 
void UniversalSurface_boneTransform (in vec4 boneWeights, in ivec4 boneIndices, in sampler2D boneTexture, inout vec4 osVertex, inout vec3 osNormal, inout vec4 osPackedTangent)
 
void UniversalSurface_customOSVertexTransformation (inout vec4 vertex, inout vec3 normal, inout vec4 packedTangent, inout vec2 tex0, inout vec2 tex1)
 Provided to make it easy to perform custom vertex manipulation and procedural vertex generation. More...
 
mat4 UniversalSurface_getFullBoneTransform (in vec4 boneWeights, in ivec4 boneIndices, in sampler2D boneMatrixTexture)
 

Detailed Description


Provides helper transformation functions for universal surface.

This is packaged separately from UniversalSurface_render.vrt and UniversalSurface_vertex.glsl 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

◆ getBoneMatrix()

mat4 glsl::UniversalSurface_vertexHelpers_glsl::getBoneMatrix ( in sampler2D  boneMatrixTexture,
in int  index 
)
inline

◆ UniversalSurface_boneTransform()

void glsl::UniversalSurface_vertexHelpers_glsl::UniversalSurface_boneTransform ( in vec4  boneWeights,
in ivec4  boneIndices,
in sampler2D  boneTexture,
inout vec4  osVertex,
inout vec3  osNormal,
inout vec4  osPackedTangent 
)
inline

◆ UniversalSurface_customOSVertexTransformation()

void glsl::UniversalSurface_vertexHelpers_glsl::UniversalSurface_customOSVertexTransformation ( inout vec4  vertex,
inout vec3  normal,
inout vec4  packedTangent,
inout vec2  tex0,
inout vec2  tex1 
)
inline

Provided to make it easy to perform custom vertex manipulation and procedural vertex generation.

Operates in object space.

◆ UniversalSurface_getFullBoneTransform()

mat4 glsl::UniversalSurface_vertexHelpers_glsl::UniversalSurface_getFullBoneTransform ( in vec4  boneWeights,
in ivec4  boneIndices,
in sampler2D  boneMatrixTexture 
)
inline

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