So I am working on an additive lighting system similar to many of the online tutorials. I am having one major issue. Where the lights overlap, I am actually getting areas that appear to be darker, not lighter. After reading the YoYo Games blog post about blend modes, I thought bm_add could only make things lighter.
I am creating a lighting surface, clearing it to black, and then drawing a light circle using circle_draw_color with a gradient from orange to black. Then I draw this surface over the application surface using a multiply blend mode. Here is an example of the issue:
Just to list some of the things I have tried:
-Using sprites instead of draw-circle-color
-Using different colors and trying extended blend modes
-Not using a gradient color, but this produces really hard lines that I don't like
I am thinking maybe I need a shader but have no idea what I would do with it. I am hoping someone can help me as I have been beating my head against the wall with this for a few days and even tried the dev discord, but no solutions so far.
Thanks guys.
I am creating a lighting surface, clearing it to black, and then drawing a light circle using circle_draw_color with a gradient from orange to black. Then I draw this surface over the application surface using a multiply blend mode. Here is an example of the issue:
Just to list some of the things I have tried:
-Using sprites instead of draw-circle-color
-Using different colors and trying extended blend modes
-Not using a gradient color, but this produces really hard lines that I don't like
I am thinking maybe I need a shader but have no idea what I would do with it. I am hoping someone can help me as I have been beating my head against the wall with this for a few days and even tried the dev discord, but no solutions so far.
Thanks guys.