From 0a10391ab064086c41c8d34b53ae90b68da51ca8 Mon Sep 17 00:00:00 2001 From: e2002e Date: Mon, 22 Jul 2024 17:04:32 +0200 Subject: [PATCH] Update voxel_resolve_ao.comp.glsl --- Shaders/voxel_resolve_ao/voxel_resolve_ao.comp.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shaders/voxel_resolve_ao/voxel_resolve_ao.comp.glsl b/Shaders/voxel_resolve_ao/voxel_resolve_ao.comp.glsl index 030e7201d..6abf9d127 100644 --- a/Shaders/voxel_resolve_ao/voxel_resolve_ao.comp.glsl +++ b/Shaders/voxel_resolve_ao/voxel_resolve_ao.comp.glsl @@ -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)); }