#GameDev Support me with biscuits ;)
Last Progress Post (July):
https://www.patreon.com/posts/85745632
DevAccount: @thrallgames
Thrall of Time⌛️
Ooo pretty!
Though I think the blending isn't quite right - the colors aren't combining like lights normally do :O
When I do lights, I start with a black mask and stack the colored lights on top additively. Then I use multiplicative blending to apply the resulting mask to the scene below it.
Yea for some reason I couldn't get that to work? I do the black mask like you, then each of my lights are subtractive lol, I will give it another go at some point but for now this kinda works!
Maybe I'll try later after I've had some food. I'll be sure to show you what happens if I do!
I'll be interested to hear what happened :)
Good luck and enjoy your meal!
Thanks! Was tasty :D
First attempt, all I did was swapped out the draw_set_blend_mode(bm_subtract) for the line in the help documentation which was: draw_set_blend_mode_ext(bm_src_alpha, bm_one);
https://i.imgur.com/iEKTr9h.mp4
Hmm, I'd like the light to not actually be white X'D
As someone who had that exact wrong effect for like 5 years - agreed xD
Also side-note: blendfuncs like that get crazy when you start talking about premultiplied alphas. IDK if GM lets you split alpha and color channels in the blendfunc but it might be necessary if your mask has alpha (which I don't think it should)
I have no idea, but I'm certainly gonna try and find out. Btw this is what I'm using for my lights, a white circle sprite that fades at the edges. https://i.imgur.com/wfIoMdb.png I could use draw_circle but apparently they aren't as cheap as sprites
This looks better, but now I have no non-coloured lights! XD
Hmm, this looks promising, I took out the colour part of my code just to focus on the basic light for now
https://i.imgur.com/yXHc9d6.mp4
This is bm_zero,bm_inv_src_colour
I've set the possible blends into an array and I've got keys set up so I can cycle through the possible combinations. I'll continue with it tomorrow since it's 5AM :S
Ok, didn't go to sleep yet XD I think this is right(er?), it's hard to tell from the gif, but the blue crossing with normal looks lighter, the blue and yellow looks kinda green, and the red and yellow looks kinda orange. The grass floor obviously has an effect too. https://i.imgur.com/3vmzbT1.mp4
So sorry for spamming you btw!