bacteriaman
Member
I have an object with a DRAW event that displays a semi-opaque overlay (aka. dimmer) over the entire room. This is used when displaying a dialog in the foreground (just like a browser modal window.)
However, I only want the overlay to appear on non-transparent portions of the room. Transparent portions of the room should be unaffected and display the background color.
I believe this can be accomplished with Shaders, but I am not sure how to go about it. I am prepared to do my own experimentation, but I would be grateful for any tips the community would like to share.
GML:
draw_set_alpha(0.6);
draw_set_color(COLOR_BROWN);
draw_rectangle(0, 0, 1024, 662, false);
draw_set_alpha(1)
I believe this can be accomplished with Shaders, but I am not sure how to go about it. I am prepared to do my own experimentation, but I would be grateful for any tips the community would like to share.
Last edited: