Godot: GLES2 "Do not Receive Shadows" is not working

Created on 14 Mar 2019  路  6Comments  路  Source: godotengine/godot

Godot version:
3.1 stable

OS/device including version:
Windows 10

Issue description:
The spatial material has an option "Do not Receive Shadows". Shadows are rendered onto this mesh even if this option is checked. It's working as intended on GLES3.

GLES2:
gles2

GLES3:
gles3

Steps to reproduce:

  • Create a new 3D scene
  • add a light source
  • add two meshes, one which is casting a shadow and one which is receiving the shadow
  • check "Do not Receive Shadows" in the options of the spatial material of the receiving mesh

Minimal reproduction project:

ReceiveShadowBug.zip

bug junior job rendering

Most helpful comment

It looks like the issue is that the "shadows_disabled" render flag hasn't been implemented in scene.glsl in GLES2. https://github.com/godotengine/godot/blob/master/drivers/gles2/shaders/scene.glsl

All 6 comments

It looks like the issue is that the "shadows_disabled" render flag hasn't been implemented in scene.glsl in GLES2. https://github.com/godotengine/godot/blob/master/drivers/gles2/shaders/scene.glsl

Hi, I'm going to try to implement this part

looking at both codes really is not implemented SHADOW_DISABLE, I entered IRC and FreeBDS works, I think bug on windows (I'm a novice and novice contributor in the engine too), but in GLES2 the functions are of SHADOW && Light, so I'm analyzing how to implement

@SouzaGuilherme Are you still working on this issue? If you are not I'd like to pick it up.

Yes, I'm still working on that. I'm having a bad time since I have little shaders knowledge, but i think that 4 days are enough.

Giving news on the issue, I confirm issue # 28171 is related to the current issue. I'm having a bit of trouble, so the delay, any help is welcome!

Was this page helpful?
0 / 5 - 0 ratings