fix shadow issue with lights in mix mode, i think fixes #1611

This commit is contained in:
Juan Linietsky 2015-04-03 14:36:10 -03:00
parent 9fa1698c74
commit 5d99e15e43
2 changed files with 5 additions and 1 deletions

View File

@ -2,3 +2,7 @@
name="Using Lights As Mask"
main_scene="res://lightmask.scn"
[rasterizer]
shadow_filter=3

View File

@ -369,7 +369,7 @@ LIGHT_SHADER_CODE
#if defined(USE_LIGHT_SHADOW_COLOR)
color=mix(shadow_color,color,shadow_attenuation);
#else
color.rgb*=shadow_attenuation;
color*=shadow_attenuation;
#endif
//use shadows
#endif