Bit more cleanup.
This commit is contained in:
9
materials/WorldMaterial.tres
Normal file
9
materials/WorldMaterial.tres
Normal file
@@ -0,0 +1,9 @@
|
||||
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://chuogedj81c5"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://be6ueh411xro5" path="res://materials/WorldMaterialShader.gdshader" id="1_76gxt"]
|
||||
[ext_resource type="Texture2D" uid="uid://cu1hvpqmqn31n" path="res://icon.svg" id="2_7os1f"]
|
||||
|
||||
[resource]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_76gxt")
|
||||
shader_parameter/text = ExtResource("2_7os1f")
|
14
materials/WorldMaterialShader.gdshader
Normal file
14
materials/WorldMaterialShader.gdshader
Normal file
@@ -0,0 +1,14 @@
|
||||
shader_type spatial;
|
||||
render_mode unshaded;
|
||||
|
||||
uniform sampler2D text;
|
||||
|
||||
//void vertex() {
|
||||
//
|
||||
//}
|
||||
|
||||
void fragment() {
|
||||
vec4 tex_color = texture(text, UV);
|
||||
ALBEDO = tex_color.rgb;
|
||||
ALPHA = tex_color.a;
|
||||
}
|
1
materials/WorldMaterialShader.gdshader.uid
Normal file
1
materials/WorldMaterialShader.gdshader.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://be6ueh411xro5
|
Reference in New Issue
Block a user