mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Merge pull request #24495 from vipsbpig/pr-fix-gles2-spotlight
Fix GLES2 Spotlight shadow problem
This commit is contained in:
@@ -1914,7 +1914,6 @@ FRAGMENT_SHADER_CODE
|
||||
#ifdef USE_SHADOW
|
||||
{
|
||||
highp vec4 splane = shadow_coord;
|
||||
splane.xyz /= splane.w;
|
||||
|
||||
float shadow = sample_shadow(light_shadow_atlas, splane);
|
||||
light_att *= shadow;
|
||||
|
||||
Reference in New Issue
Block a user