forked from team-sg/hero-mark-2
first commit
This commit is contained in:
commit
096ebe5aa4
275 changed files with 3937 additions and 0 deletions
14
scripts/recolor.tres
Normal file
14
scripts/recolor.tres
Normal file
|
@ -0,0 +1,14 @@
|
|||
[gd_resource type="Shader" format=2]
|
||||
|
||||
[resource]
|
||||
code = "// Recolor
|
||||
shader_type canvas_item;
|
||||
|
||||
uniform sampler2D palette : hint_albedo;
|
||||
|
||||
void fragment() {
|
||||
vec4 color = texture(TEXTURE, UV);
|
||||
vec4 result_color = texture(palette, color.rg );
|
||||
result_color.a = color.a;
|
||||
COLOR = result_color;
|
||||
}"
|
Loading…
Add table
Add a link
Reference in a new issue