1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Fix undefined alpha_scissor in standard shader

This commit is contained in:
jsjtxietian
2024-08-15 11:44:11 +08:00
parent a7a124a57d
commit 970a237c20
3 changed files with 3 additions and 3 deletions

View File

@@ -2242,7 +2242,7 @@ void fragment_shader(in SceneData scene_data) {
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