Godot: DirectionalLight's shadows doesn't work with orthogonal cameras

Created on 27 Aug 2018  路  7Comments  路  Source: godotengine/godot

Godot version:
db55d8a

Issue description:
Perspective mode:
screenshot at 2018-08-26 18-57-19

Orthogonal mode:
screenshot at 2018-08-26 18-57-52

bug rendering

Most helpful comment

For me it only breaks in the editor when you press 5 on the numpad to switch to orthographic mode. If you place a orthographic camera and then click the "preview" button on the camera it does seem to work.

E.g. here's an orthographic shadow after pressing 5:
img2

And here's after previewing an orthographic camera:
img

All 7 comments

For me it only breaks in the editor when you press 5 on the numpad to switch to orthographic mode. If you place a orthographic camera and then click the "preview" button on the camera it does seem to work.

E.g. here's an orthographic shadow after pressing 5:
img2

And here's after previewing an orthographic camera:
img

This is not really bug, but more like the fact that PSSM (2 and 4 splits) are pointless in orthographic view.
Try using ortographic shadow instead.

I wish usability of this could be improved, maybe shadow should be forced to ortographic?

@reduz Orthogonal shadow does nothing.

Also affects SpotLight, see example project from #28878: https://github.com/godotengine/godot/files/3176735/FF.zip

Testing with MRP: 21462.zip

Can reproduce in 3.1.alpha2, 3.1.1, 3.1.2, 3.2, 3.2.1 (stables)
Can't reproduce in 3.2.2.stable.

Appears to be resolved.

Thanks, closing.

Was this page helpful?
0 / 5 - 0 ratings