Skip to content
Snippets Groups Projects
Commit dba71e3c authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Remove pointless Y flip of BRDF lut

parent 085c13b8
No related branches found
No related tags found
No related merge requests found
......@@ -392,7 +392,7 @@ vec3 pbrIbl(vec3 diffuseColor,
out vec3 specContrib)
{
// retrieve a scale and bias to F0. See [1], Figure 3
vec2 brdf = BRDF(clamp(nv, 0, 1), 1.0-perceptualRough);
vec2 brdf = BRDF(clamp(nv, 0, 1), perceptualRough);
vec3 diffuseLight = irradiance;
vec3 specularLight = radiance;
......
......@@ -135,5 +135,5 @@ vec2 BRDF(float NoV, float roughness)
void main()
{
outColor = vec4(BRDF(vary_uv.s, 1.0-vary_uv.t), 0.0, 1.0);
outColor = vec4(BRDF(vary_uv.s, vary_uv.t), 0.0, 1.0);
}
......@@ -265,7 +265,7 @@ void main()
color += ibl;
float nv = clamp(abs(dot(norm.xyz, v)), 0.001, 1.0);
vec2 brdf = BRDF(clamp(nv, 0, 1), 1.0);
vec2 brdf = BRDF(clamp(nv, 0, 1), 0.0);
float f = 1.0-brdf.x; //1.0 - (brdf.x+brdf.y);
f *= 0.9;
f *= f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment