You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
OpenGL: Fix shader compilation failure with shadow_to_opacity and unshaded
This commit is contained in:
@@ -2273,7 +2273,11 @@ void main() {
|
|||||||
|
|
||||||
#if defined(USE_SHADOW_TO_OPACITY)
|
#if defined(USE_SHADOW_TO_OPACITY)
|
||||||
#ifndef MODE_RENDER_DEPTH
|
#ifndef MODE_RENDER_DEPTH
|
||||||
|
#ifndef MODE_UNSHADED
|
||||||
alpha = min(alpha, clamp(length(ambient_light), 0.0, 1.0));
|
alpha = min(alpha, clamp(length(ambient_light), 0.0, 1.0));
|
||||||
|
#else
|
||||||
|
alpha = 0.0;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(ALPHA_SCISSOR_USED)
|
#if defined(ALPHA_SCISSOR_USED)
|
||||||
#ifdef RENDER_MATERIAL
|
#ifdef RENDER_MATERIAL
|
||||||
|
|||||||
Reference in New Issue
Block a user