Made some fancy normalmap-supporting #pixelart lights in #godotengine for Multiversal Affairs!
It is inspired by GIFs corrupting my early smooth lights into something similar.
It works by snapping colors by a specific value. I can set the value as a uniform.
I had to write a custom light #shader. Since I can't use #godotengine 's OG light function inside of mine as of now, I ported it into gdshader from glsl.
I took it from servers/rendering/renderer_rd/shaders/canvas.glsl. Something makes it slightly dimmer, but it's mostly consistent with the original.
You can grab my shader at https://pastebin.com/BP2tUwZa
It's pretty unorganized and has some unused variables, but it's workable.