asc-community / MxEngine

C++ open source 3D game engine
BSD 3-Clause "New" or "Revised" License
1.12k stars 59 forks source link

why is the sun shadow like this? #85

Closed ghost closed 1 year ago

ghost commented 1 year ago

image

in every sample the shadow that is casted from the sun looks like this is this normal?

MomoDeve commented 1 year ago

You can reduce shadow layer size to improve shadow quality

ghost commented 1 year ago

like this?: auto& shadowLayer = MxObject::GetByName("ShadowLayer");

MomoDeve commented 1 year ago

Try open it in editor. It's directional light component. You can edit scale of each sascade depth map

ghost commented 1 year ago

image when i change the directional light settings and even after removing and adding a new one i still get wierd shadows but this wierdly only applies to directional light but not to point light

MomoDeve commented 1 year ago

I will investigate an issue and update dir light shadows with improved algorithm