GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Model3D::VertexShaderOutputs Struct Reference

Struct of fields output by the default vertex shader. More...

#include <GREM/graphics_3d/Model3D.hpp>

Public Attributes

vec3 fragmentPosition
 World-space position of the vertex.
float fragmentDepth
 View-space depth of the vertex from the camera.
vec3 fragmentNormal
 World-space normal vector of the vertex.
vec3 fragmentTangent
 World-space tangent vector of the vertex.
vec3 fragmentBitangent
 World-space bitangent vector of the vertex.
vec2 fragmentTextureCoordinatesChannel0
 Texture coordinates of the vertex on channel 0.
vec2 fragmentTextureCoordinatesChannel1
 Texture coordinates of the vertex on channel 1.
vec4 fragmentTintColor
 Tint color of the vertex.
vec3 fragmentEmissiveColor
 Emissive color of the vertex.
vec3 fragmentEmissiveFactor
 Emissive factor of the vertex.
uint32_t fragmentInstanceIdentifier
 Instance identifier of the model instance.

Detailed Description

Struct of fields output by the default vertex shader.

Member Data Documentation

◆ fragmentPosition

vec3 grem::graphics::Model3D::VertexShaderOutputs::fragmentPosition

World-space position of the vertex.

◆ fragmentDepth

float grem::graphics::Model3D::VertexShaderOutputs::fragmentDepth

View-space depth of the vertex from the camera.

◆ fragmentNormal

vec3 grem::graphics::Model3D::VertexShaderOutputs::fragmentNormal

World-space normal vector of the vertex.

◆ fragmentTangent

vec3 grem::graphics::Model3D::VertexShaderOutputs::fragmentTangent

World-space tangent vector of the vertex.

◆ fragmentBitangent

vec3 grem::graphics::Model3D::VertexShaderOutputs::fragmentBitangent

World-space bitangent vector of the vertex.

◆ fragmentTextureCoordinatesChannel0

vec2 grem::graphics::Model3D::VertexShaderOutputs::fragmentTextureCoordinatesChannel0

Texture coordinates of the vertex on channel 0.

◆ fragmentTextureCoordinatesChannel1

vec2 grem::graphics::Model3D::VertexShaderOutputs::fragmentTextureCoordinatesChannel1

Texture coordinates of the vertex on channel 1.

◆ fragmentTintColor

vec4 grem::graphics::Model3D::VertexShaderOutputs::fragmentTintColor

Tint color of the vertex.

◆ fragmentEmissiveColor

vec3 grem::graphics::Model3D::VertexShaderOutputs::fragmentEmissiveColor

Emissive color of the vertex.

◆ fragmentEmissiveFactor

vec3 grem::graphics::Model3D::VertexShaderOutputs::fragmentEmissiveFactor

Emissive factor of the vertex.

◆ fragmentInstanceIdentifier

uint32_t grem::graphics::Model3D::VertexShaderOutputs::fragmentInstanceIdentifier

Instance identifier of the model instance.


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