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

Object parallax forward 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 uniform mat4 inverseV
 The view to world transformation matrix.
 
uniform mat4 p
 Projection matrix.
 
uniform vec2 invScreenSize
 Destination size.
 
uniform int lightsCount
 Number of active lights.
 
uniform int probesCount
 Number of active envmaps.
 
uniform GPUPackedLight lights [MAX_LIGHTS_COUNT]
 Store the lights in a continuous buffer (UBO).
 
uniform GPUPackedProbe probes [MAX_PROBES_COUNT]
 Store the probes in a continuous buffer (UBO).
 
uniform vec4 coeffs [9]
 SH approximations of the environment probes irradiance (UBO).
 
out vec4 fragColor
 Ambient contribution.
 

Detailed Description

Object parallax forward fragment shader.

See also
GPUShaders::Common::Common_pbr, GPUShaders::Common::Common_parallax, GPUShaders::Common::Forward_lights

Member Function Documentation

◆ main()

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

Shade the object, applying parallax mapping.


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