13 lines
332 B
Plaintext
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;
|
|
}
|