Godot Version
4.2.1
Overview
Hello. I am currently working on a 2D Noita-like game, and the current method for both rendering and collision is splitting the world into a series of “chunks” which consist of an image and a static body. The static body has its collision polygons made using the opaque_to_polygons function of bitmaps.
Question
I’m wanting to add shadows and lighting to the game, but am struggling on the specifics. To be exact, I want to give each pixel in the image the property of a light occluder, so that the entire world can block light. Using a normal light occluder has been tricky, as setting the occluder with code is going to be near impossible. Instead, I was wondering if there is any other way to add these abilities to an entire image, and automatically block light in a pixel-perfect game. I’ve looked around for a few hours, but haven’t found anything I can use, so if you have any kind of solution please let me know!