Files
mod_core/shaders/2d_cubism_mask.gdshader
T
2026-09-10 10:59:36 +03:00

13 lines
332 B
Plaintext

// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2023 MizunagiKB <mizukb@live.jp>
// 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;
}