idk getting back to it
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://bx0778wr1ge00"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://be6ueh411xro5" path="res://materials/WorldMaterialShader.gdshader" id="1_h67lk"]
|
||||
[ext_resource type="Texture2D" uid="uid://cu1hvpqmqn31n" path="res://icon.svg" id="2_7766c"]
|
||||
|
||||
[resource]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_h67lk")
|
||||
shader_parameter/text = ExtResource("2_7766c")
|
@@ -7,3 +7,4 @@
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_76gxt")
|
||||
shader_parameter/text = ExtResource("2_7os1f")
|
||||
shader_parameter/color = Color(1, 1, 1, 1)
|
||||
|
@@ -2,6 +2,7 @@ shader_type spatial;
|
||||
render_mode unshaded;
|
||||
|
||||
uniform sampler2D text;
|
||||
uniform vec4 color: source_color = vec4(1.0, 1.0, 1.0, 1.0);
|
||||
|
||||
//void vertex() {
|
||||
//
|
||||
@@ -9,6 +10,6 @@ uniform sampler2D text;
|
||||
|
||||
void fragment() {
|
||||
vec4 tex_color = texture(text, UV);
|
||||
ALBEDO = tex_color.rgb;
|
||||
ALPHA = tex_color.a;
|
||||
ALBEDO = tex_color.rgb * color.rgb;
|
||||
ALPHA = tex_color.a * color.a;
|
||||
}
|
Reference in New Issue
Block a user