diff --git a/libs/gfx/source/renderer/deferred.cpp b/libs/gfx/source/renderer/deferred.cpp index bd899040..b78c73dd 100644 --- a/libs/gfx/source/renderer/deferred.cpp +++ b/libs/gfx/source/renderer/deferred.cpp @@ -442,6 +442,10 @@ void main() if (tc.x >= 0.0 && tc.x <= 1.0 && tc.y >= 0.0 && tc.y <= 1.0 && tc.z >= 0.0) { +// int l = cascade + 1; +// color = vec3(float(l & 1), float(l & 2) / 2.0, float(l & 4) / 4.0); +// break; + color *= texture(u_shadow, vec4(tc.x, tc.y, float(cascade), tc.z)); break; }