|
Untitled
|
Go to the source code of this file.
Functions | |
| float | RadicalInverse_VdC (uint bits) |
| vec2 | Hammersley (uint i, uint N) |
| vec3 | ImportanceSampleGGX (vec2 Xi, vec3 N, float roughness) |
| float | GeometrySchlickGGX (float NdotV, float roughness) |
| float | GeometrySmith (vec3 N, vec3 V, vec3 L, float roughness) |
| vec2 | IntegrateBRDF (float NdotV, float roughness) |
| void | main () |
Variables | |
| out vec2 | FragColor |
| in vec2 | vUV |
| const uint | SAMPLE_COUNT = 1024u |
| float RadicalInverse_VdC | ( | uint | bits | ) |
Definition at line 8 of file brdf.frag.
References RadicalInverse_VdC().
Referenced by Hammersley(), and RadicalInverse_VdC().
| vec2 Hammersley | ( | uint | i, |
| uint | N ) |
Definition at line 17 of file brdf.frag.
References Hammersley(), and RadicalInverse_VdC().
Referenced by Hammersley(), and IntegrateBRDF().
Definition at line 21 of file brdf.frag.
References ImportanceSampleGGX(), vec2::x, vec3::x, vec2::y, vec3::y, and vec3::z.
Referenced by ImportanceSampleGGX(), and IntegrateBRDF().
| float GeometrySchlickGGX | ( | float | NdotV, |
| float | roughness ) |
Definition at line 40 of file brdf.frag.
References GeometrySchlickGGX().
Referenced by GeometrySchlickGGX(), and GeometrySmith().
Definition at line 45 of file brdf.frag.
References GeometrySchlickGGX(), and GeometrySmith().
Referenced by GeometrySmith(), and IntegrateBRDF().
| vec2 IntegrateBRDF | ( | float | NdotV, |
| float | roughness ) |
Definition at line 51 of file brdf.frag.
References A, B, GeometrySmith(), Hammersley(), ImportanceSampleGGX(), IntegrateBRDF(), SAMPLE_COUNT, vec3::x, vec3::y, and vec3::z.
Referenced by IntegrateBRDF(), and main().
| void main | ( | ) |
| const uint SAMPLE_COUNT = 1024u |
Definition at line 6 of file brdf.frag.
Referenced by IntegrateBRDF().