• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - IDE gpu_set_blendmode_ext_sepalpha() broken ?

Y

yoyowan

Guest
No successful results with gpu_set_blendmode_ext_sepalpha() to set a different alpha blend mode. Does not produce visible changes on my side.

var1, var2, var3 and var4 = one of the 11 blend modes (for example "bm_one")
only when changing var1 and var2 produce visible results
my sprite "sprite_m" has transparency...

May someone please confirm this function works ? thank you ;)

Code:
     gpu_set_blendmode_ext_sepalpha(var1,var2,var3,var4);
     draw_sprite_ext(sprite_m,0,x,y,global.size_b/500,global.size_b/500,0,colour1,1);
     gpu_set_blendmode(bm_normal);
 
Last edited by a moderator:
Y

yoyowan

Guest
Documentation seems to be undecided for that function: https://docs2.yoyogames.com/source/...awing/gpu/gpu_set_blendmode_ext_sepalpha.html

It shows gpu_set_blendmode(src, dest, alphasrc, alphadest); as syntax, but as you said it should be gpu_set_blendmode_ext_sepalpha.
So, maybe try as on bottom example: gpu_set_blendmode_ext_sepalpha([var1,var2,var3,var4]); (there's an dynamic array in brackets) ?
Not working for var3 and var4 only var1 and var2 ....
Bug or not ?
 
Top