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

Skybox infinity vertex shader. More...

Public Member Functions

void main ()
 

Public Attributes

in vec3 v
 Position.
 
uniform mat4 mvp
 MVP transformation matrix.
 
out vec3 pos
 Position in model space.
 

Detailed Description

Skybox infinity vertex shader.

Member Function Documentation

◆ main()

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

Apply the transformation to the input vertex, treating it as a vector to ignore the translation part and keep it centered. We also ensure the vertex will be set to the maximum depth by tweaking gl_Position.z.


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