Skip to content

Commit

Permalink
Update voxel_resolve_ao.comp.glsl
Browse files Browse the repository at this point in the history
  • Loading branch information
e2002e authored Jul 22, 2024
1 parent 6ddd2e4 commit 0a10391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shaders/voxel_resolve_ao/voxel_resolve_ao.comp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void main() {
n.xy = n.z >= 0.0 ? g0.xy : octahedronWrap(g0.xy);
n = normalize(n);

float occ = traceAO(P, n, voxels, clipmaps);
float occ = 1.0 - traceAO(P, n, voxels, clipmaps);

imageStore(voxels_ao, ivec2(pixel), vec4(occ));
}

0 comments on commit 0a10391

Please sign in to comment.