Held item light sources light based on the camera position rather than the player position
deli73 opened this issue ยท 2 comments
This is probably less obvious with larger light sources, but we noticed this while holding redstone ore, which casts a glow with a very small radius. The light is being cast from the camera location.
(For reference, we are also using the True Darkness and Illuminations mods (though those shouldn't affect this besides true dark making it more obvious), and we have the max light radius set to 10 instead of the default 11. If any additional information is needed, let us know.)
Steps to reproduce:
- enter a dark space
- hold redstone ore in your hand
- enter third-person mode and move the camera near something that can be illuminated
- observe the red glow coming from the camera rather than the player's hand
This is a current limitation of the low-cost way held lights are currently implemented. Rendering lights from the player perspective when camera is in third person would also lead to obviously incorrect results without an extra pass or some other more elaborate mechanism.