-
Notifications
You must be signed in to change notification settings - Fork 0
/
reflection_probe_shader.tres
146 lines (101 loc) · 4.69 KB
/
reflection_probe_shader.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[gd_resource type="VisualShader" load_steps=14 format=3 uid="uid://dysutagxnvj6"]
[sub_resource type="VisualShaderNodeVectorCompose" id="VisualShaderNodeVectorCompose_10br0"]
[sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_lh5os"]
constant = 0.5
[sub_resource type="VisualShaderNodeMultiplyAdd" id="VisualShaderNodeMultiplyAdd_ligju"]
output_port_for_preview = 0
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(0.5, 0.5, 0.5), 2, Vector3(0.5, 0.5, 0.5)]
op_type = 2
[sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_e6pm1"]
[sub_resource type="VisualShaderNodeColorConstant" id="VisualShaderNodeColorConstant_3afkh"]
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_nc6it"]
input_name = "uv"
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_bp6yq"]
default_input_values = [0, Vector2(0, 0), 1, Vector2(6.283, 3.142)]
op_type = 0
operator = 2
[sub_resource type="VisualShaderNodeVectorFunc" id="VisualShaderNodeVectorFunc_2ibw1"]
default_input_values = [0, Vector2(0, 0)]
op_type = 0
function = 12
[sub_resource type="VisualShaderNodeVectorFunc" id="VisualShaderNodeVectorFunc_t4d7q"]
default_input_values = [0, Vector2(0, 0)]
op_type = 0
function = 26
[sub_resource type="VisualShaderNodeVectorDecompose" id="VisualShaderNodeVectorDecompose_ea53q"]
default_input_values = [0, Vector2(0, 0)]
op_type = 0
[sub_resource type="VisualShaderNodeVectorDecompose" id="VisualShaderNodeVectorDecompose_x6vx1"]
default_input_values = [0, Vector2(0, 0)]
op_type = 0
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_bkg2h"]
operator = 2
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_2v3ur"]
operator = 2
[resource]
code = "shader_type spatial;
void fragment() {
// ColorConstant:14
vec4 n_out14p0 = vec4(1.000000, 1.000000, 1.000000, 1.000000);
// FloatConstant:13
float n_out13p0 = 0.000000;
// Input:2
vec2 n_out2p0 = UV;
// VectorOp:3
vec2 n_in3p1 = vec2(6.28300, 3.14200);
vec2 n_out3p0 = n_out2p0 * n_in3p1;
// VectorFunc:5
vec2 n_out5p0 = sin(n_out3p0);
// VectorDecompose:7
float n_out7p0 = n_out5p0.x;
float n_out7p1 = n_out5p0.y;
// FloatOp:9
float n_out9p0 = n_out7p0 * n_out7p1;
// VectorFunc:4
vec2 n_out4p0 = cos(n_out3p0);
// VectorDecompose:6
float n_out6p0 = n_out4p0.x;
float n_out6p1 = n_out4p0.y;
// FloatOp:8
float n_out8p0 = n_out6p0 * n_out7p1;
// VectorCompose:10
vec3 n_out10p0 = vec3(n_out9p0, n_out6p1, n_out8p0);
// FloatConstant:11
float n_out11p0 = 0.500000;
// MultiplyAdd:12
vec3 n_out12p0 = fma(n_out10p0, vec3(n_out11p0), vec3(n_out11p0));
// Output:0
ALBEDO = vec3(n_out14p0.xyz);
ROUGHNESS = n_out13p0;
NORMAL = n_out12p0;
}
"
graph_offset = Vector2(-439.402, -26.5651)
nodes/fragment/0/position = Vector2(440, 120)
nodes/fragment/2/node = SubResource("VisualShaderNodeInput_nc6it")
nodes/fragment/2/position = Vector2(-1320.55, 244.582)
nodes/fragment/3/node = SubResource("VisualShaderNodeVectorOp_bp6yq")
nodes/fragment/3/position = Vector2(-1000.55, 204.582)
nodes/fragment/4/node = SubResource("VisualShaderNodeVectorFunc_2ibw1")
nodes/fragment/4/position = Vector2(-800.552, 284.582)
nodes/fragment/5/node = SubResource("VisualShaderNodeVectorFunc_t4d7q")
nodes/fragment/5/position = Vector2(-800.552, 144.582)
nodes/fragment/6/node = SubResource("VisualShaderNodeVectorDecompose_ea53q")
nodes/fragment/6/position = Vector2(-640.552, 284.582)
nodes/fragment/7/node = SubResource("VisualShaderNodeVectorDecompose_x6vx1")
nodes/fragment/7/position = Vector2(-640.552, 144.582)
nodes/fragment/8/node = SubResource("VisualShaderNodeFloatOp_bkg2h")
nodes/fragment/8/position = Vector2(-400.552, 284.582)
nodes/fragment/9/node = SubResource("VisualShaderNodeFloatOp_2v3ur")
nodes/fragment/9/position = Vector2(-400.552, 144.582)
nodes/fragment/10/node = SubResource("VisualShaderNodeVectorCompose_10br0")
nodes/fragment/10/position = Vector2(-240.552, 144.582)
nodes/fragment/11/node = SubResource("VisualShaderNodeFloatConstant_lh5os")
nodes/fragment/11/position = Vector2(-240.552, 64.5817)
nodes/fragment/12/node = SubResource("VisualShaderNodeMultiplyAdd_ligju")
nodes/fragment/12/position = Vector2(-40.5516, 104.582)
nodes/fragment/13/node = SubResource("VisualShaderNodeFloatConstant_e6pm1")
nodes/fragment/13/position = Vector2(200, 320)
nodes/fragment/14/node = SubResource("VisualShaderNodeColorConstant_3afkh")
nodes/fragment/14/position = Vector2(180, 120)
nodes/fragment/connections = PackedInt32Array(2, 0, 3, 0, 3, 0, 5, 0, 3, 0, 4, 0, 4, 0, 6, 0, 5, 0, 7, 0, 6, 0, 8, 0, 6, 1, 10, 1, 7, 1, 8, 1, 7, 0, 9, 0, 7, 1, 9, 1, 8, 0, 10, 2, 9, 0, 10, 0, 10, 0, 12, 0, 11, 0, 12, 1, 11, 0, 12, 2, 13, 0, 0, 3, 14, 0, 0, 0, 12, 0, 0, 8)