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

Light shadow linear variance fragment shader. More...

Public Member Functions

void main ()
 

Public Attributes

in vec4 worldPos
 World space position.
 
in vec2 uv
 Texture coordinates.
 
uniform uniform vec3 lightPositionWorld
 The world space position of the light.
 
uniform float lightFarPlane
 The light projection matrix far plane.
 
uniform bool hasMask
 Should the object alpha mask be applied.
 
out vec2 fragColor
 World space depth and depth squared.
 

Detailed Description

Light shadow linear variance fragment shader.

See also
GPUShaders::Common::Samplers

Member Function Documentation

◆ main()

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

Compute the depth in world space, normalized by the far plane distance


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