I just noticed that the torch in the player's hand doesn't light up the environment anymore. The problem seems to be related to what is done in the lightGeometryStencilPass, and in particular the WorldRendererLwjgl.renderWorld() lines:
Or am I perhaps missing a setting somewhere? Commenting out the stencil pass (and patching appropriately the following lightGeometryPass) solves the problem, although I don't know what other problems it introduces. I.e. right now I'm not even sure what the stencil pass does in the first place. The picture doesn't seem to change if it's disabled, unless I go very close to an object with the torch, by which point I get something related to the issue [deleted user] has been mentioning recently, albeit without the pixel-scale artifacts he has shown.
I tried to go back into the git log to see if I could find a commit where the torch in hand still worked but I immediately stumbled upon errors seemingly due to libraries having changed. Should I run gradle idea or gradle cleanIdea idea whenever I go back in time a lot? How does this work?
Code:
DefaultRenderingProcess.getInstance().beginRenderLightGeometryStencilPass();
...
DefaultRenderingProcess.getInstance().endRenderLightGeometryStencilPass();
I tried to go back into the git log to see if I could find a commit where the torch in hand still worked but I immediately stumbled upon errors seemingly due to libraries having changed. Should I run gradle idea or gradle cleanIdea idea whenever I go back in time a lot? How does this work?