You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not Reproducible in v3.5.1.stable.official [6fed1ff]
System information
Windows 10 - Godot v4.3.dev [f91db3d] - Vulkan (Forward+)
Issue description
I've set up a scene with a PointLight, a ColorRect and a LightOccluder2D.
I've placed a ColorRect on separate layers from the LightOccluder2D. I expect that this would behave the same as in 3.x with the shadow appearing behind the object but the rect is instead being shadowed by the occluder despite all attempts at masking.
I've used rectangles to keep things simple but the idea here is that shadow is from the body of a character and the rect is the rendered 2D sprite. It is important that when this is replaced with art assets that the shadow doesn't have gaps or self-shadows the final art. So I've made the occluder smaller than the rect to make the problems immediately obvious.
The same scene in Godot v3.5.1.stable.official [6fed1ff] looks like the following and is the desired behaviour:
Steps to reproduce
I've quickly set up the scene like the following.
Everything is on layer 1 except the ColorRect, which is the only node on layer 2. The PointLight is configured to affect all layers. Its shadows however are only on layer 1.
and the point light is configured like so:
I expect that with this arrangement of masks that shadows should appear behind the rect and not ontop of it as they are now on separate layers each individually affected by a different combination. The rect should only be affected by the light (layer 2) and the background should be affected by the light and the shadow (layer 1).
Minimal reproduction project (MRP)
Here are the two MRP scenes, just drop them in a blank project of either 3.x or 4.x: mrp scenes.zip
The text was updated successfully, but these errors were encountered:
Tested versions
System information
Windows 10 - Godot v4.3.dev [f91db3d] - Vulkan (Forward+)
Issue description
I've set up a scene with a
PointLight
, aColorRect
and aLightOccluder2D
.I've placed a
ColorRect
on separate layers from theLightOccluder2D
. I expect that this would behave the same as in 3.x with the shadow appearing behind the object but the rect is instead being shadowed by the occluder despite all attempts at masking.I've used rectangles to keep things simple but the idea here is that shadow is from the body of a character and the rect is the rendered 2D sprite. It is important that when this is replaced with art assets that the shadow doesn't have gaps or self-shadows the final art. So I've made the occluder smaller than the rect to make the problems immediately obvious.
The same scene in Godot v3.5.1.stable.official [6fed1ff] looks like the following and is the desired behaviour:

Steps to reproduce
I've quickly set up the scene like the following.
Everything is on layer 1 except the
ColorRect
, which is the only node on layer 2. ThePointLight
is configured to affect all layers. Its shadows however are only on layer 1.and the point light is configured like so:

I expect that with this arrangement of masks that shadows should appear behind the rect and not ontop of it as they are now on separate layers each individually affected by a different combination. The rect should only be affected by the light (layer 2) and the background should be affected by the light and the shadow (layer 1).
Minimal reproduction project (MRP)
Here are the two MRP scenes, just drop them in a blank project of either 3.x or 4.x:
mrp scenes.zip
The text was updated successfully, but these errors were encountered: