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

Object transparent forward fragment shader. More...

Public Member Functions

void main ()
 

Public Attributes

in mat4 tbn
 Normal to view matrix.
 
in vec4 viewSpacePosition
 View space position.
 
in vec2 uv
 UV coordinates.
 
uniform uniform uniform mat4 inverseV
 The view to world transformation matrix.
 
uniform vec2 invScreenSize
 Destination size.
 
uniform int lightsCount
 Number of active lights.
 
uniform int probesCount
 Number of active envmaps.
 
uniform bool hasUV
 Does the mesh have UV coordinates.
 
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
 Shading result.
 

Detailed Description

Object transparent forward fragment shader.

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

Member Function Documentation

◆ main()

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

Shade the object, applying lighting.


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