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

Object parallax gbuffer fragment shader. More...

Public Member Functions

void main ()
 

Public Attributes

in mat4 tbn
 Normal to view matrix.
 
in vec4 tangentSpacePosition
 Tangent space position.
 
in vec4 viewSpacePosition
 View space position.
 
in vec2 uv
 UV coordinates.
 
uniform uniform mat4 p
 Projection matrix.
 
out vec4 fragColor
 Color.
 
out vec4 fragNormal
 View space normal.
 
out vec4 fragEffects
 Effects.
 

Detailed Description

Object parallax gbuffer fragment shader.

See also
GPUShaders::Common::Samplers, GPUShaders::Common::Common_parallax, GPUShaders::Common::Materials, GPUShaders::Common::Utils

Member Function Documentation

◆ main()

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

Transfer albedo and effects along with the material ID, and output the final normal (combining geometry normal and normal map) in view space. Apply parallax mapping effect.


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