63 lines
2.0 KiB
Plaintext
63 lines
2.0 KiB
Plaintext
[gd_resource type="VisualShader" load_steps=6 format=3 uid="uid://cw52v3cvqy1tp"]
|
|
|
|
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_fv6gs"]
|
|
output_port_for_preview = 0
|
|
source = 5
|
|
texture_type = 1
|
|
|
|
[sub_resource type="VisualShaderNodeTexture2DParameter" id="VisualShaderNodeTexture2DParameter_530f7"]
|
|
parameter_name = "tex1_color"
|
|
texture_type = 1
|
|
texture_filter = 6
|
|
texture_repeat = 1
|
|
|
|
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_hf88l"]
|
|
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(128, 0, 0)]
|
|
|
|
[sub_resource type="Texture2DArray" id="Texture2DArray_lk6j3"]
|
|
|
|
[sub_resource type="VisualShaderNodeTexture2DArray" id="VisualShaderNodeTexture2DArray_lh6mx"]
|
|
texture_array = SubResource("Texture2DArray_lk6j3")
|
|
|
|
[resource]
|
|
code = "shader_type spatial;
|
|
render_mode blend_mix, depth_draw_opaque, depth_test_default, cull_back, diffuse_lambert, specular_schlick_ggx;
|
|
|
|
uniform sampler2DArray tex3d_frg_6;
|
|
uniform sampler2D tex1_color : source_color, filter_linear_mipmap_anisotropic, repeat_enable;
|
|
|
|
|
|
|
|
void fragment() {
|
|
vec4 n_out6p0;
|
|
// Texture2DArray:6
|
|
n_out6p0 = texture(tex3d_frg_6, vec3(UV, 0.0));
|
|
|
|
|
|
// VectorOp:5
|
|
vec3 n_in5p1 = vec3(128.00000, 0.00000, 0.00000);
|
|
vec3 n_out5p0 = vec3(n_out6p0.xyz) + n_in5p1;
|
|
|
|
|
|
vec4 n_out2p0;
|
|
// Texture2D:2
|
|
n_out2p0 = texture(tex1_color, vec2(n_out5p0.xy));
|
|
|
|
|
|
// Output:0
|
|
ALBEDO = vec3(n_out2p0.xyz);
|
|
|
|
|
|
}
|
|
"
|
|
nodes/fragment/0/position = Vector2(1060, 80)
|
|
nodes/fragment/2/node = SubResource("VisualShaderNodeTexture_fv6gs")
|
|
nodes/fragment/2/position = Vector2(740, 180)
|
|
nodes/fragment/3/node = SubResource("VisualShaderNodeTexture2DParameter_530f7")
|
|
nodes/fragment/3/position = Vector2(360, 360)
|
|
nodes/fragment/5/node = SubResource("VisualShaderNodeVectorOp_hf88l")
|
|
nodes/fragment/5/position = Vector2(320, 120)
|
|
nodes/fragment/6/node = SubResource("VisualShaderNodeTexture2DArray_lh6mx")
|
|
nodes/fragment/6/position = Vector2(-40, 160)
|
|
nodes/fragment/connections = PackedInt32Array(2, 0, 0, 0, 3, 0, 2, 2, 5, 0, 2, 0, 6, 0, 5, 0)
|