Skip to content

Commit

Permalink
volumetric: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vlj committed Jan 15, 2024
1 parent c5f1d04 commit a1178b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/base/shaders/vk/terrain_combined_classic.frag
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ vec3 blendAddEffectLighting(vec3 a, vec3 b) {

vec4 main_classic() {
vec4 decal = fragf.tileNo >= 0 ? texture(decalTex, vec3(frag.uvDecal, fragf.tileNo), WZ_MIP_LOAD_BIAS) : vec4(0);
float visibility = getShadowVisibility();
float visibility = getShadowVisibility(frag.fragPos);

vec3 L = normalize(frag.groundLightDir);
vec3 N = vec3(0,0,1);
Expand Down
2 changes: 1 addition & 1 deletion data/base/shaders/vk/terrain_combined_medium.frag
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ vec3 blendAddEffectLighting(vec3 a, vec3 b) {
vec4 main_medium() {
vec3 ground = getGround(0) + getGround(1) + getGround(2) + getGround(3);
vec4 decal = fragf.tileNo >= 0 ? texture(decalTex, vec3(frag.uvDecal, fragf.tileNo), WZ_MIP_LOAD_BIAS) : vec4(0.f);
float visibility = getShadowVisibility();
float visibility = getShadowVisibility(frag.fragPos);

vec3 L = normalize(frag.groundLightDir);
vec3 N = vec3(0.f,0.f,1.f);
Expand Down

0 comments on commit a1178b2

Please sign in to comment.