You've already forked godot
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user