Skip to content

Commit

Permalink
Merge pull request #2956 from MoritzBrueckner/fix-shadowmap-atlas-sizes
Browse files Browse the repository at this point in the history
Fix compilation when using shadow map atlas of size 32768
  • Loading branch information
luboslenco authored Oct 27, 2023
2 parents 36ffc12 + d8cd051 commit 6045a2e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Sources/armory/renderpath/Inc.hx
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,8 @@ class ShadowMapAtlas {
return 8192;
#elseif (rp_shadowmap_atlas_max_size == 16384)
return 16384;
#elseif (rp_shadowmap_atlas_max_size == 32768)
return 32768;
#end
#else
switch (type) {
Expand All @@ -765,6 +767,8 @@ class ShadowMapAtlas {
return 8192;
#elseif (rp_shadowmap_atlas_max_size_point == 16384)
return 16384;
#elseif (rp_shadowmap_atlas_max_size_point == 32768)
return 32768;
#end
}
case "spot": {
Expand All @@ -780,6 +784,8 @@ class ShadowMapAtlas {
return 8192;
#elseif (rp_shadowmap_atlas_max_size_spot == 16384)
return 16384;
#elseif (rp_shadowmap_atlas_max_size_spot == 32768)
return 32768;
#end
}
case "sun": {
Expand All @@ -795,6 +801,8 @@ class ShadowMapAtlas {
return 8192;
#elseif (rp_shadowmap_atlas_max_size_sun == 16384)
return 16384;
#elseif (rp_shadowmap_atlas_max_size_sun == 32768)
return 32768;
#end
}
default: {
Expand All @@ -810,9 +818,10 @@ class ShadowMapAtlas {
return 8192;
#elseif (rp_shadowmap_atlas_max_size == 16384)
return 16384;
#elseif (rp_shadowmap_atlas_max_size == 32768)
return 32768;
#end
}

}
#end
}
Expand Down

0 comments on commit 6045a2e

Please sign in to comment.