Redi2Go / PhotonicEngine

13 stars 0 forks source link

[Feature] Add toggle option to enable/disable tracing for specific block types #43

Open k0nfig15 opened 1 month ago

k0nfig15 commented 1 month ago

Not every light source cast shadows

2024-08-01_07 57 55 glowstone, froglights, light block,... don't cast shadows. For example, when light emitting block is encased in trapdoors it doesn't emit any light.

Light sources don't cast Entities shadows only sun and moon

(light source) 2024-08-01_08 03 06 (sun) 2024-08-01_08 10 26

Redi2Go commented 1 month ago

I will add an option to change which blocks cast shadows or not. You can only have a few thousand of shadow casting blocks per scene, otherwise GPU performance is going to tank and the world takes ages to load.

Secondly, the sun/moon shadows are calculated using Shadow Mapping. That's the reason that entities can cast shadows. But Shadow Mapping is a very expensive technique that would have to be used for every single light, thus making it unfeasible for anything other than the sun/moon.