mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
18 lines
406 B
Plaintext
18 lines
406 B
Plaintext
[gd_resource type="Shader" format=2]
|
|
|
|
[resource]
|
|
code = "shader_type spatial;
|
|
render_mode blend_mix,depth_draw_opaque,cull_back,specular_disabled,vertex_lighting;
|
|
uniform vec4 albedo : hint_color;
|
|
uniform sampler2D texture_albedo : hint_albedo;
|
|
|
|
void fragment() {
|
|
vec2 base_uv = UV;
|
|
|
|
vec4 albedo_tex = texture(texture_albedo, base_uv);
|
|
|
|
albedo_tex *= COLOR;
|
|
ALBEDO = albedo.rgb * albedo_tex.rgb;
|
|
}
|
|
"
|