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

Spot light pbr fragment shader. More...

Public Member Functions

void main ()
 

Public Attributes

uniform uniform mat4 viewToLight
 View to light space matrix.
 
uniform vec4 projectionMatrix
 Camera projection matrix.
 
uniform vec3 lightPosition
 Light position in view space.
 
uniform vec3 lightDirection
 Light direction in view space.
 
uniform vec3 lightColor
 Light intensity.
 
uniform vec2 intOutAnglesCos
 Angular attenuation inner and outer angles.
 
uniform float lightRadius
 Attenuation radius.
 
uniform float shadowBias
 shadow depth bias.
 
uniform int shadowMode
 The shadow map technique.
 
uniform int shadowLayer
 The shadow map layer.
 
out vec3 fragColor
 Color.
 

Detailed Description

Spot light pbr fragment shader.

See also
GPUShaders::Common::Common_pbr, GPUShaders::Common::Shadow_maps, GPUShaders::Common::Utils

Member Function Documentation

◆ main()

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

Compute the lighting contribution of a spot light using the GGX BRDF.


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