idk getting back to it

This commit is contained in:
2025-08-19 16:56:44 -05:00
parent 0f3db7c4a4
commit 5cd8b8a04b
17 changed files with 342 additions and 67 deletions

View File

@@ -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")

View File

@@ -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)

View File

@@ -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;
}