34 lines
903 B
Plaintext
34 lines
903 B
Plaintext
[gd_resource type="VisualShader" load_steps=3 format=3 uid="uid://dr2k3gqeaitso"]
|
|
|
|
[sub_resource type="VisualShaderNodeVec4Parameter" id="VisualShaderNodeVec4Parameter_haltq"]
|
|
output_port_for_preview = 0
|
|
parameter_name = "MetaBallA"
|
|
|
|
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_q7wmx"]
|
|
input_name = "modelview_matrix"
|
|
|
|
[resource]
|
|
code = "shader_type spatial;
|
|
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
|
|
|
|
uniform vec4 MetaBallA;
|
|
|
|
|
|
|
|
void vertex() {
|
|
// Vector4Parameter:2
|
|
vec4 n_out2p0 = MetaBallA;
|
|
|
|
|
|
// Output:0
|
|
NORMAL = vec3(n_out2p0.xyz);
|
|
|
|
|
|
}
|
|
"
|
|
nodes/vertex/2/node = SubResource("VisualShaderNodeVec4Parameter_haltq")
|
|
nodes/vertex/2/position = Vector2(-120, 40)
|
|
nodes/vertex/3/node = SubResource("VisualShaderNodeInput_q7wmx")
|
|
nodes/vertex/3/position = Vector2(-400, 160)
|
|
nodes/vertex/connections = PackedInt32Array(2, 0, 0, 1)
|