iFactory.Godot/Artists/Models/Unlit.tres

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-11-30 00:27:34 +08:00
[gd_resource type="VisualShader" load_steps=4 format=3 uid="uid://ctup8ch7g8d8"]
[ext_resource type="Texture2D" uid="uid://deo1d6nujoayd" path="res://iFactory/Art/Backgrounds/Premium Vector _ High tech technology geometric.jpg" id="1_ho0r1"]
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_pnmq1"]
output_port_for_preview = 0
texture = ExtResource("1_ho0r1")
texture_type = 1
[sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_20cju"]
output_port_for_preview = 0
[resource]
code = "shader_type spatial;
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
uniform sampler2D tex_frg_2 : source_color;
void fragment() {
// Texture2D:2
vec4 n_out2p0 = texture(tex_frg_2, UV);
// Output:0
ALBEDO = vec3(n_out2p0.xyz);
EMISSION = vec3(n_out2p0.xyz);
}
"
nodes/fragment/2/node = SubResource("VisualShaderNodeTexture_pnmq1")
nodes/fragment/2/position = Vector2(-400, 180)
nodes/fragment/3/node = SubResource("VisualShaderNodeFloatConstant_20cju")
nodes/fragment/3/position = Vector2(-60, 420)
nodes/fragment/connections = PackedInt32Array(2, 0, 0, 0, 2, 0, 0, 5)