This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main3D.tres
72 lines (49 loc) · 2.29 KB
/
main3D.tres
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[gd_resource type="VisualShader" load_steps=8 format=3 uid="uid://b5obgeckawhtk"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_bh4tx"]
frequency = 0.073
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_7ej22"]
noise = SubResource("FastNoiseLite_bh4tx")
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_pi34p"]
texture = SubResource("NoiseTexture2D_7ej22")
[sub_resource type="VisualShaderNodeStep" id="VisualShaderNodeStep_obhun"]
output_port_for_preview = 0
default_input_values = [0, Vector3(0.5, 0.5, 0.5), 1, Vector3(0, 0, 0)]
op_type = 3
[sub_resource type="VisualShaderNodeColorConstant" id="VisualShaderNodeColorConstant_2ph28"]
constant = Color(1, 0.105359, 0.053107, 1)
[sub_resource type="VisualShaderNodeColorConstant" id="VisualShaderNodeColorConstant_bk0g8"]
constant = Color(0.997394, 1, 0.604638, 1)
[sub_resource type="VisualShaderNodeMix" id="VisualShaderNodeMix_5qyxj"]
default_input_values = [0, Quaternion(0, 0, 0, 0), 1, Quaternion(1, 1, 1, 1), 2, Quaternion(0.5, 0.5, 0.5, 0.5)]
op_type = 5
[resource]
code = "shader_type spatial;
uniform sampler2D tex_frg_2;
void fragment() {
// ColorConstant:4
vec4 n_out4p0 = vec4(1.000000, 0.105359, 0.053107, 1.000000);
// ColorConstant:5
vec4 n_out5p0 = vec4(0.997394, 1.000000, 0.604638, 1.000000);
// Texture2D:2
vec4 n_out2p0 = texture(tex_frg_2, UV);
// Step:3
vec3 n_in3p0 = vec3(0.50000, 0.50000, 0.50000);
vec3 n_out3p0 = step(n_in3p0, vec3(n_out2p0.xyz));
// Mix:6
vec4 n_out6p0 = mix(n_out4p0, n_out5p0, vec4(n_out3p0, 0.0));
// Output:0
ALBEDO = vec3(n_out6p0.xyz);
}
"
nodes/fragment/0/position = Vector2(920, 140)
nodes/fragment/2/node = SubResource("VisualShaderNodeTexture_pi34p")
nodes/fragment/2/position = Vector2(80, 260)
nodes/fragment/3/node = SubResource("VisualShaderNodeStep_obhun")
nodes/fragment/3/position = Vector2(360, 240)
nodes/fragment/4/node = SubResource("VisualShaderNodeColorConstant_2ph28")
nodes/fragment/4/position = Vector2(500, 60)
nodes/fragment/5/node = SubResource("VisualShaderNodeColorConstant_bk0g8")
nodes/fragment/5/position = Vector2(340, 120)
nodes/fragment/6/node = SubResource("VisualShaderNodeMix_5qyxj")
nodes/fragment/6/position = Vector2(720, 140)
nodes/fragment/connections = PackedInt32Array(2, 0, 3, 1, 3, 0, 6, 2, 5, 0, 6, 1, 4, 0, 6, 0, 6, 0, 0, 0)