Closed OFFTKP closed 2 weeks ago
cc @skylersaleh
Someone is cooking with this one 👀 (Stolen from Paris' discord messages)
Closed this accidentally deleting the other branch
Needs vertex shader to be changed in specialized shader PR
TODO: bitfieldExtractCompat needs to sign extend for spotdir, or do something else
Uncomment lighting on Android
lutLookup
returns a float. The typeGL_R16
was probably interpreted asGL_R16F
? The alternative to this could be using GL_R16UI, but then we'd need to convert to float on the GPUtexelFetch
instead oftexture
in the shader, since this texture is really treated as an array and we don't need filtering or interpolationImprove lighting implementation
Known bugs
Luigi's mansion:
LuigiLuigi's lighting is mostly fixed except when he opens the door he looks like he's seen a ghost:Spotlight just decides to stop working sometimes. It continues working when thunder strikes for a short while, then it stops working and the whole room goes brighterFixed, GPUREG_LIGHTING_LIGHT_PERMUTATION was being accessed incorrectlyIn the intro when thunder strikes twice the road isn't illuminatedFixedCave Story 3D:
The evil doctor (and the rest of the scene) in the boot up of the game is wrongly lit. Game is better lit than before overall, was almost completely darkThis should be fixed now post the Luigi spotlight fixRabbids:
Positional lighting seems to work now, however there's some light flickering in the level selector near the castleSeems fixed after the Luigi spotlight fix, can't see any flickeringCaptain Toad Treasure Tracker:
Pokedex 3D:
Pushmo/Crashmo:
Lego Batman:
Improvements
This patch makes it so that the shader editor shows the LUTs, useful for debugging luts.txt