Skip to content

Commit

Permalink
DO NOT MERGE - hardcode csm index to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
stohrendorf committed Mar 22, 2023
1 parent 6c90e56 commit a0bf5d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/shaders/lighting.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ float calc_vsm_value(in int splitIdx, in vec3 projCoords)
vec2 moments = vec2(0);
// https://stackoverflow.com/a/32273875
#define FETCH_CSM(idx) case idx: moments = texture(u_csmVsm[idx], projCoords.xy).xy; break
switch (splitIdx) {
switch (0) {
FETCH_CSM(0);
FETCH_CSM(1);
FETCH_CSM(2);
Expand Down
2 changes: 1 addition & 1 deletion src/render/pass/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

namespace render::pass
{
constexpr bool FlushPasses = true;
constexpr bool FlushPasses = false;
}

0 comments on commit a0bf5d2

Please sign in to comment.