// SPDX-License-Identifier: MIT // SPDX-FileCopyrightText: 2023 MizunagiKB // GDCubism shader: Mask shader_type canvas_item; render_mode blend_mix, unshaded; uniform vec4 channel : source_color; uniform sampler2D tex_main : filter_linear_mipmap; void fragment() { COLOR = channel * texture(tex_main, UV).a; }