Godot Version
3.5.3
Question
I’m trying to reduce the amount of draw calls from my game as much as possible. Because of that, I am currently replacing a light2D with hard coded color manipulation, without using shaders.
In this case, I am only changing the color of polygons generated by code (which are the stars in the sky).
With the light2D I was making the stars shine, using the “add” mode.
I’ve already hard coded everything else, the only thing missing is getting the color of the polygons looking the same as they did with the light 2D. I don’t know how to achieve it, especially because the polygons have varying colors.
The closest I’ve come was with color.linear_interpolate(Color.white, energy - (dist / radius))
. But that makes the polygons, at some point, all look white, losing any color variety they previously had.
What math or function combo would help me achieve a result closest to that of the color resulting from the use of a light2D?