Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GPUShaders::Vert::Object_forward Class Reference

Object forward vertex shader. More...

Public Member Functions

void main ()
 

Public Attributes

in vec3 v
 Position.
 
in vec3 n
 Normal.
 
in vec2 uv
 Texture coordinates.
 
in vec3 tang
 Tangent.
 
in vec3 bitan
 Bitangent.
 
uniform mat4 mvp
 MVP transformation matrix.
 
uniform mat4 mv
 MV transformation matrix.
 
uniform mat4 normalMatrix
 Normal transformation matrix.
 
uniform bool hasUV
 Does the mesh have UV coordinates.
 
out mat4 tbn
 Normal to view matrix.
 
out vec4 viewSpacePosition
 View space position.
 
out vec2 uv
 UV coordinates.
 

Detailed Description

Object forward vertex shader.

Member Function Documentation

◆ main()

void GPUShaders::Vert::Object_forward::main ( )
inline

Apply the transformation to the input vertex. Compute the tangent-to-view space transformation matrix.


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