Pixel-Composer/scripts/surface_draw_functions/surface_draw_functions.gml
2023-03-19 15:17:39 +07:00

23 lines
No EOL
412 B
Text

function __channel_pre(surf) {
var f = surface_get_format(surf);
switch(f) {
case surface_r8unorm :
case surface_r16float :
case surface_r32float :
shader_set(sh_draw_single_channel);
return;
}
}
function __channel_pos(surf) {
var f = surface_get_format(surf);
switch(f) {
case surface_r8unorm :
case surface_r16float :
case surface_r32float :
shader_reset();
return;
}
}