blendmodes

  1. C

    help with blendmodes/shaders

    is there a way to make objects only blend with specific objects? ie: clouds only blend with the sky and not other clouds? i tried doing the surface method but it required i draw all the clouds at the same alpha. that won't work for me because as my clouds reach the horizon they become more...
  2. N

    Cutting a hole using blendmodes

    Hello! I'm trying to cut a hole using blendmodes and this is what I have currently: gpu_set_blendmode(bm_normal); draw_set_color(c_white); gpu_set_blendmode_ext(bm_inv_src_alpha, bm_inv_src_alpha); draw_rectangle(500, 400, 600, 500, false); gpu_set_blendmode(bm_normal); it results in this...
  3. N

    Achieving a static pattern effect

    Hey all! I'm trying to achieve an effect where an object moves and displays a static pattern behind it. like this: https://imgur.com/gallery/1du6zXI/new I have been trying to achieve this with blendmodes, but with no success. Can this be achieved with blend modes? If not then how could it be...
  4. P

    Help using subrtract blendmode on surfaces

    Hey everyone, I've created a surface which is dark blue, and signifies the night time. As you can see in my example, I have several lights placed, and a light around the player. I'd like those lights to punch a hole in the surface. Here's the code for my surface draw: if...
  5. Kealor

    GMS 2 bm_subtract and surfaces [(mostly) UNSOLVED]

    So currently when i subtract something from a surface, it sets the alpha of destination pixel to 0. What i want to do is just subtract the alpha at its specific value. at the moment a source pixel of [100,100,100,0.5] (RGBA) subtracted from [255,255,255,1] results in [155,155,155,0] as apposed...
  6. matharoo

    Discussion The ability to make your own blend modes

    While working with extended blend modes, I sometimes think that it would be really helpful if we could create our own. Like blend modes have 4 values to be multiplied with the R, G, B and A values, a function like this would be cool: var bm_half = blendmode_create(0.5, 0.5, 0.5, 0.5); Of...
  7. Roastedzerg

    GMS 2 Trouble with color_replace script...

    im trying to change a single color in the player sprite to the players color, the script seems to work for the most part, but the blend modes are messed up and a background shows on the sprite where it should be transparent. Im not too familiar with the blendmode types and cant figure out which...
  8. Narayan Lewandowski

    GML [SOLVED] gml blendmode that only effects hue?

    I don't even know if its possible with blendmodes (tbh I don't really get the gml blendmodes), but I need to basically need to set the hue of everything drawn on screen to a certain color. I though i could put gpu_set_blendmode_ext(something, something); draw_clear(col)...
Top