Rendu
A lightweight rendering engine for experimentations
|
Point light pbr fragment shader. More...
Public Member Functions | |
void | main () |
Public Attributes | |
uniform uniform mat4 | viewToLight |
Light direction in view space. | |
uniform vec4 | projectionMatrix |
Camera projection matrix. | |
uniform vec3 | lightPosition |
Light position in view space. | |
uniform vec3 | lightColor |
Light intensity. | |
uniform float | lightRadius |
Attenuation radius. | |
uniform float | lightFarPlane |
Light projection far plane. | |
uniform float | shadowBias |
shadow depth bias. | |
uniform int | shadowMode |
The shadow map technique. | |
uniform int | shadowLayer |
The shadow map layer. | |
out vec3 | fragColor |
Color. | |
Point light pbr fragment shader.
|
inline |
Compute the lighting contribution of a point light using the GGX BRDF.