Shader function name typo [skip ci]
This commit is contained in:
parent
265e05bcbd
commit
21180132d9
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ float D_GGX(float dotNH, float roughness)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Geometric Shadowing function --------------------------------------
|
// Geometric Shadowing function --------------------------------------
|
||||||
float G_SchlickmithGGX(float dotNL, float dotNV, float roughness)
|
float G_SchlicksmithGGX(float dotNL, float dotNV, float roughness)
|
||||||
{
|
{
|
||||||
float r = (roughness + 1.0);
|
float r = (roughness + 1.0);
|
||||||
float k = (r*r) / 8.0;
|
float k = (r*r) / 8.0;
|
||||||
|
|
@ -84,7 +84,7 @@ vec3 BRDF(vec3 L, vec3 V, vec3 N, float metallic, float roughness)
|
||||||
// D = Normal distribution (Distribution of the microfacets)
|
// D = Normal distribution (Distribution of the microfacets)
|
||||||
float D = D_GGX(dotNH, roughness);
|
float D = D_GGX(dotNH, roughness);
|
||||||
// G = Geometric shadowing term (Microfacets shadowing)
|
// G = Geometric shadowing term (Microfacets shadowing)
|
||||||
float G = G_SchlickmithGGX(dotNL, dotNV, roughness);
|
float G = G_SchlicksmithGGX(dotNL, dotNV, roughness);
|
||||||
// F = Fresnel factor (Reflectance depending on angle of incidence)
|
// F = Fresnel factor (Reflectance depending on angle of incidence)
|
||||||
vec3 F = F_Schlick(dotNV, metallic);
|
vec3 F = F_Schlick(dotNV, metallic);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue