Pixel-Composer/scripts/_draw_defines/_draw_defines.gml

20 lines
872 B
Text
Raw Normal View History

2023-03-19 09:17:39 +01:00
#region enums
#endregion
#region macro
#macro BLEND_NORMAL gpu_set_blendmode(bm_normal); gpu_set_blendequation(bm_eq_add);
2024-07-15 10:43:30 +02:00
#macro BLEND_ADD gpu_set_blendmode(bm_add);
#macro BLEND_ADD_ONE gpu_set_blendmode_ext(bm_one, bm_one);
2024-07-15 10:43:30 +02:00
#macro BLEND_OVERRIDE gpu_set_blendmode_ext(bm_one, bm_zero);
2024-01-14 12:20:23 +01:00
//#macro BLEND_ADD_ALPHA gpu_set_blendmode_ext_sepalpha(bm_one, bm_inv_src_alpha, bm_one, bm_one)
2023-03-19 09:17:39 +01:00
2024-07-15 10:43:30 +02:00
#macro BLEND_ALPHA gpu_set_blendmode_ext_sepalpha(bm_one, bm_inv_src_alpha, bm_one, bm_one);
#macro BLEND_ALPHA_MULP gpu_set_blendmode_ext_sepalpha(bm_src_alpha, bm_inv_src_alpha, bm_one, bm_one);
#macro BLEND_MAX gpu_set_blendmode(bm_normal); gpu_set_blendequation(bm_eq_max);
2023-03-19 09:17:39 +01:00
2024-07-15 10:43:30 +02:00
#macro BLEND_MULTIPLY gpu_set_blendmode_ext(bm_dest_colour, bm_zero);
#macro BLEND_SUBTRACT gpu_set_blendmode(bm_subtract);
2023-03-28 06:58:28 +02:00
2023-12-15 12:56:36 +01:00
#macro DRAW_CLEAR draw_clear_alpha(0, 0);
2023-03-19 09:17:39 +01:00
#endregion