1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Remove minimum size for shadow atlas

This commit is contained in:
clayjohn
2020-02-29 10:09:15 -08:00
parent f3c7019177
commit 03d46ea804

View File

@@ -886,7 +886,6 @@ void RasterizerSceneRD::shadow_atlas_set_size(RID p_atlas, int p_size) {
ERR_FAIL_COND(!shadow_atlas); ERR_FAIL_COND(!shadow_atlas);
ERR_FAIL_COND(p_size < 0); ERR_FAIL_COND(p_size < 0);
p_size = next_power_of_2(p_size); p_size = next_power_of_2(p_size);
p_size = MAX(p_size, 1 << roughness_layers); // TODO: use a number related to shadows rather than reflections
if (p_size == shadow_atlas->size) if (p_size == shadow_atlas->size)
return; return;