For some reason, despite having a directional light with a cascadeshadowconfig, the meshes are not casting shadows on those around them, which leads to this weird visual where sunlight is visible on the mesh despite it being in a cave. Any idea as to what could be causing this? None of my meshes have a NoShadowReceiver or anything like that
#My meshes are not casting shadows
1 messages · Page 1 of 1 (latest)
Is it using a custom material?
No, you'll need to do the shadow sampling yourself. Well, not entirely yourself, there are premade functions to help, but yeah, shadows need to be handled manually. I don't remember what those functions are right now though
Ahh alright
You know where I could find them?
I can’t find anything on shadow sampling there
https://github.com/bevyengine/bevy/blob/75f04a743bc3da77d3d1fac9d9322920d56ed05b/crates/bevy_pbr/src/render/pbr_functions.wgsl#L296 this is the full thing