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

Object parallax gbuffer 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.
 
out mat4 tbn
 Normal to view matrix.
 
out vec4 tangentSpacePosition
 Tangent space position.
 
out vec4 viewSpacePosition
 View space position.
 
out vec2 uv
 UV coordinates.
 

Detailed Description

Object parallax gbuffer vertex shader.

Member Function Documentation

◆ main()

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

Apply the transformation to the input vertex. Compute the tangent-to-view space transformation matrix. Output the view space and tangent space positions of the vertex.


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