bradleyq / mc_vanilla_shaders

MC vanilla fabulous shaders
MIT License
244 stars 5 forks source link

Shadow are bugged when sun is in the back of the player #24

Closed vadim-soude closed 1 year ago

vadim-soude commented 1 year ago

https://youtu.be/rODXspblOoE

Here's the video of the issues, if you look of the left and right bottom corner of the screen you can notice some shadows are not supposed to act like that.

Minecraft version : 1.19.4 (tested in 1.20.1 and the bug is also present)

Godlander commented 1 year ago

i think thats working as intended vanilla doesn't have a shadow map texture or similar to get "correct" shadows u'd have to voxelize the entire world, and even that's subject to frustum culling i think the shadows here are done in screen-space, so only objects visible on screen can cast shadows. thats why the shadows on the edges of screen may be inaccurate

bradleyq commented 1 year ago

See @Godlander's comment. Closed.