TriVoxel: Burley + (EON, Gotanda, Chan) Diffuse Models
This commit is contained in:
@ -137,7 +137,7 @@ void main() {
|
||||
envl.rgb = pow(envl.rgb, vec3(2.2));
|
||||
#endif
|
||||
|
||||
envl.rgb *= albedo;
|
||||
envl.rgb *= diffuseIBL(albedo, roughness, f0, dotNV);
|
||||
|
||||
#ifdef _Brdf
|
||||
envl.rgb *= 1.0 - F; //LV: We should take refracted light into account
|
||||
@ -146,7 +146,7 @@ void main() {
|
||||
envl.rgb *= envmapStrength * voxelgiEnv * occspec.x;
|
||||
|
||||
vec4 trace = traceDiffuse(P, n, voxels, clipmaps);
|
||||
vec3 color = trace.rgb * albedo * (1.0 - F);
|
||||
vec3 color = trace.rgb * diffuseIBL(albedo, roughness, f0, dotNV) * (1.0 - F);
|
||||
color += envl * (1.0 - trace.a);
|
||||
|
||||
imageStore(voxels_diffuse, ivec2(pixel), vec4(color, 1.0));
|
||||
|
||||
Reference in New Issue
Block a user