[gd_resource type="VisualShader" load_steps=16 format=3 uid="uid://cfpxgchxwgbkx"]

[ext_resource type="Texture2D" uid="uid://cae3f4x447bmm" path="res://textures/grass/grass2_grass_albedo.png" id="1_vsatv"]
[ext_resource type="Texture2D" uid="uid://des6fxtjmdbe" path="res://textures/dirt/Substance_graph_dirt_albedo.png" id="2_ra5cs"]

[sub_resource type="VisualShaderNodeMix" id="VisualShaderNodeMix_6femc"]
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(1, 1, 1), 2, Vector3(0.5, 0.5, 0.5)]
op_type = 3

[sub_resource type="Gradient" id="Gradient_wepj2"]
offsets = PackedFloat32Array(0, 0.651786)

[sub_resource type="FastNoiseLite" id="FastNoiseLite_b27qv"]
noise_type = 0
frequency = 0.0072

[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_jdhbv"]
color_ramp = SubResource("Gradient_wepj2")
noise = SubResource("FastNoiseLite_b27qv")

[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_np3oj"]
texture = SubResource("NoiseTexture2D_jdhbv")

[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_yh7on"]
input_name = "uv"

[sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_wg5ul"]
constant = 10.0

[sub_resource type="VisualShaderNodeUVFunc" id="VisualShaderNodeUVFunc_3qwob"]
function = 1

[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_5d6tp"]
texture = ExtResource("1_vsatv")

[sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_07b1x"]
constant = 10.0

[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_2721b"]
input_name = "uv"

[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_s17s5"]
texture = ExtResource("2_ra5cs")

[sub_resource type="VisualShaderNodeUVFunc" id="VisualShaderNodeUVFunc_vampe"]
function = 1

[resource]
code = "shader_type spatial;
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;

uniform sampler2D tex_frg_5;
uniform sampler2D tex_frg_8;
uniform sampler2D tex_frg_11;



void fragment() {
// Input:2
	vec2 n_out2p0 = UV;


// FloatConstant:3
	float n_out3p0 = 10.000000;


// UVFunc:4
	vec2 n_in4p2 = vec2(0.00000, 0.00000);
	vec2 n_out4p0 = (n_out2p0 - n_in4p2) * vec2(n_out3p0) + n_in4p2;


// Texture2D:5
	vec4 n_out5p0 = texture(tex_frg_5, n_out4p0);


// Input:7
	vec2 n_out7p0 = UV;


// FloatConstant:6
	float n_out6p0 = 10.000000;


// UVFunc:9
	vec2 n_in9p2 = vec2(0.00000, 0.00000);
	vec2 n_out9p0 = (n_out7p0 - n_in9p2) * vec2(n_out6p0) + n_in9p2;


// Texture2D:8
	vec4 n_out8p0 = texture(tex_frg_8, n_out9p0);


// Texture2D:11
	vec4 n_out11p0 = texture(tex_frg_11, UV);


// Mix:10
	vec3 n_out10p0 = mix(vec3(n_out5p0.xyz), vec3(n_out8p0.xyz), vec3(n_out11p0.xyz));


// Output:0
	ALBEDO = n_out10p0;


}
"
nodes/fragment/2/node = SubResource("VisualShaderNodeInput_yh7on")
nodes/fragment/2/position = Vector2(-820, 200)
nodes/fragment/3/node = SubResource("VisualShaderNodeFloatConstant_wg5ul")
nodes/fragment/3/position = Vector2(-800, 300)
nodes/fragment/4/node = SubResource("VisualShaderNodeUVFunc_3qwob")
nodes/fragment/4/position = Vector2(-320, 200)
nodes/fragment/5/node = SubResource("VisualShaderNodeTexture_5d6tp")
nodes/fragment/5/position = Vector2(-20, 160)
nodes/fragment/6/node = SubResource("VisualShaderNodeFloatConstant_07b1x")
nodes/fragment/6/position = Vector2(-820, 680)
nodes/fragment/7/node = SubResource("VisualShaderNodeInput_2721b")
nodes/fragment/7/position = Vector2(-840, 580)
nodes/fragment/8/node = SubResource("VisualShaderNodeTexture_s17s5")
nodes/fragment/8/position = Vector2(-40, 540)
nodes/fragment/9/node = SubResource("VisualShaderNodeUVFunc_vampe")
nodes/fragment/9/position = Vector2(-340, 580)
nodes/fragment/10/node = SubResource("VisualShaderNodeMix_6femc")
nodes/fragment/10/position = Vector2(180, 460)
nodes/fragment/11/node = SubResource("VisualShaderNodeTexture_np3oj")
nodes/fragment/11/position = Vector2(-140, 820)
nodes/fragment/connections = PackedInt32Array(2, 0, 4, 0, 3, 0, 4, 1, 4, 0, 5, 0, 7, 0, 9, 0, 6, 0, 9, 1, 9, 0, 8, 0, 5, 0, 10, 0, 8, 0, 10, 1, 10, 0, 0, 0, 11, 0, 10, 2)
