fix: Fix IBLLUT fetch

This commit is contained in:
FMS-Cat
2021-03-15 12:41:23 +09:00
parent 895c9c3fd7
commit a64e4af324

View File

@@ -211,7 +211,7 @@ vec3 shadePBR( Isect isect, AngularInfo aI ) {
);
// reflective ibl
vec2 brdf = texture( samplerIBLLUT, vec2( aI.dotNV, 1.0 - roughness ) ).xy;
vec2 brdf = texture( samplerIBLLUT, vec2( aI.dotNV, roughness ) ).xy;
vec3 texEnv = 0.2 * sampleEnvLinear( envUv, 5.0 * roughness ).rgb;
color += PI * ao * texEnv * ( brdf.x * F0 + brdf.y );