Bentley
Member
I have background sprite that I draw like this:
When I run the game, the background is tinted blue. My expectation was that pixels with a blue component would get a blue component of 0, as I am disabling the "blue channel".
I am clearly misunderstand this function because I get the opposite: the entire image is tinted blue. Can someone explain my idiocy? Thx for reading.
Code:
gpu_set_colorwriteenable(1, 1, 0, 1);
draw_sprite(sprite_index, 0, 0, 0);
gpu_set_colorwriteenable(1, 1, 1, 1);
I am clearly misunderstand this function because I get the opposite: the entire image is tinted blue. Can someone explain my idiocy? Thx for reading.