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

Fix soft shadows by increasing the bit count for specialization constants.

This commit is contained in:
Dario
2024-10-28 10:26:50 -03:00
parent a3080477ac
commit 427ba09efc
5 changed files with 42 additions and 27 deletions

View File

@@ -107,19 +107,19 @@ bool sc_use_lightmap_bicubic_filter() {
}
uint sc_soft_shadow_samples() {
return (sc_packed_0() >> 8) & 15U;
return (sc_packed_0() >> 8) & 63U;
}
uint sc_penumbra_shadow_samples() {
return (sc_packed_0() >> 12) & 15U;
return (sc_packed_0() >> 14) & 63U;
}
uint sc_directional_soft_shadow_samples() {
return (sc_packed_0() >> 16) & 15U;
return (sc_packed_0() >> 20) & 63U;
}
uint sc_directional_penumbra_shadow_samples() {
return (sc_packed_0() >> 20) & 15U;
return (sc_packed_0() >> 26) & 63U;
}
float sc_luminance_multiplier() {