mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix undefined alpha_scissor in standard shader
(cherry picked from commit 970a237c20)
This commit is contained in:
committed by
Rémi Verschelde
parent
1ebf488a4e
commit
b84dbab84d
@@ -1871,7 +1871,7 @@ void main() {
|
||||
alpha = min(alpha, clamp(length(ambient_light), 0.0, 1.0));
|
||||
|
||||
#if defined(ALPHA_SCISSOR_USED)
|
||||
if (alpha < alpha_scissor) {
|
||||
if (alpha < alpha_scissor_threshold) {
|
||||
discard;
|
||||
}
|
||||
#endif // !ALPHA_SCISSOR_USED
|
||||
|
||||
Reference in New Issue
Block a user