107 lines
4.0 KiB
Plaintext
107 lines
4.0 KiB
Plaintext
|
[gd_scene load_steps=20 format=3 uid="uid://cnhjdcsr1e0ov"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://grass_chunk.gd" id="1_ofmm3"]
|
||
|
[ext_resource type="Shader" uid="uid://db6rwrkgyosy0" path="res://grass.gdshader" id="2_0pvim"]
|
||
|
[ext_resource type="MultiMesh" uid="uid://3l6gx28y48io" path="res://grass_multimesh_detailed.tres" id="3_ofmm3"]
|
||
|
[ext_resource type="Script" uid="uid://bmx385ngdvuwt" path="res://grass.gd" id="4_sx5rw"]
|
||
|
[ext_resource type="Shader" path="res://impostor_grass.gdshader" id="5_ry5bi"]
|
||
|
[ext_resource type="Texture2D" uid="uid://bkm3w1ujws8d7" path="res://grass_normals.png" id="6_pxbre"]
|
||
|
|
||
|
[sub_resource type="Gradient" id="Gradient_odt3n"]
|
||
|
offsets = PackedFloat32Array(0)
|
||
|
colors = PackedColorArray(0, 0, 0, 1)
|
||
|
|
||
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_jugg6"]
|
||
|
gradient = SubResource("Gradient_odt3n")
|
||
|
|
||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_301yx"]
|
||
|
albedo_color = Color(0, 0, 0, 1)
|
||
|
ao_enabled = true
|
||
|
ao_light_affect = 1.0
|
||
|
ao_texture = SubResource("GradientTexture1D_jugg6")
|
||
|
|
||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_n0l7m"]
|
||
|
size = Vector2(5, 5)
|
||
|
|
||
|
[sub_resource type="FastNoiseLite" id="FastNoiseLite_tid6t"]
|
||
|
|
||
|
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_h2qfw"]
|
||
|
seamless = true
|
||
|
noise = SubResource("FastNoiseLite_tid6t")
|
||
|
|
||
|
[sub_resource type="FastNoiseLite" id="FastNoiseLite_tlwt5"]
|
||
|
frequency = 0.0043
|
||
|
fractal_type = 2
|
||
|
fractal_gain = 0.45
|
||
|
|
||
|
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_aqk2v"]
|
||
|
seamless = true
|
||
|
noise = SubResource("FastNoiseLite_tlwt5")
|
||
|
|
||
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fj7yv"]
|
||
|
render_priority = 0
|
||
|
shader = ExtResource("2_0pvim")
|
||
|
shader_parameter/size_small = 0.2
|
||
|
shader_parameter/size_large = 0.6
|
||
|
shader_parameter/blade_bend = 0.5
|
||
|
shader_parameter/color_small = Color(0.3, 0.6, 0.1, 1)
|
||
|
shader_parameter/color_large = Color(0.9, 0.9, 0.2, 1)
|
||
|
shader_parameter/patch_noise = SubResource("NoiseTexture2D_h2qfw")
|
||
|
shader_parameter/patch_scale = 5.0
|
||
|
shader_parameter/wind_noise = SubResource("NoiseTexture2D_aqk2v")
|
||
|
shader_parameter/wind_strength = 0.15
|
||
|
shader_parameter/wind_direction = Vector2(1, 0)
|
||
|
shader_parameter/wind_bend_strength = 2.0
|
||
|
shader_parameter/wind_ao_affect = 1.0
|
||
|
shader_parameter/object_radius = 1.0
|
||
|
shader_parameter/object_position = Vector3(0, 0.3, 0)
|
||
|
|
||
|
[sub_resource type="FastNoiseLite" id="FastNoiseLite_aqk2v"]
|
||
|
frequency = 0.1
|
||
|
|
||
|
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_036b0"]
|
||
|
seamless_blend_skirt = 0.0
|
||
|
noise = SubResource("FastNoiseLite_aqk2v")
|
||
|
|
||
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_036b0"]
|
||
|
render_priority = 0
|
||
|
shader = ExtResource("5_ry5bi")
|
||
|
shader_parameter/color_small = Color(0.3, 0.6, 0.1, 1)
|
||
|
shader_parameter/color_large = Color(0.9, 0.9, 0.2, 1)
|
||
|
shader_parameter/ground_color = Color(0, 0, 0, 1)
|
||
|
shader_parameter/patch_noise = SubResource("NoiseTexture2D_h2qfw")
|
||
|
shader_parameter/patch_scale = 5.0
|
||
|
shader_parameter/high_frequency_noise = SubResource("NoiseTexture2D_036b0")
|
||
|
shader_parameter/baked_normals = ExtResource("6_pxbre")
|
||
|
shader_parameter/wind_noise = SubResource("NoiseTexture2D_aqk2v")
|
||
|
shader_parameter/wind_strength = 0.1
|
||
|
shader_parameter/wind_direction = Vector2(1, 0)
|
||
|
shader_parameter/wind_bend_strength = 2.0
|
||
|
shader_parameter/wind_ao_affect = 1.5
|
||
|
|
||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_dwbse"]
|
||
|
size = Vector2(5, 5)
|
||
|
|
||
|
[node name="GrassChunk" type="Node3D"]
|
||
|
script = ExtResource("1_ofmm3")
|
||
|
lod_switch = 7.0
|
||
|
|
||
|
[node name="Ground" type="MeshInstance3D" parent="."]
|
||
|
material_override = SubResource("StandardMaterial3D_301yx")
|
||
|
mesh = SubResource("PlaneMesh_n0l7m")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="Grass" type="MultiMeshInstance3D" parent="."]
|
||
|
material_override = SubResource("ShaderMaterial_fj7yv")
|
||
|
cast_shadow = 0
|
||
|
instance_shader_parameters/alpha = 1.0
|
||
|
multimesh = ExtResource("3_ofmm3")
|
||
|
script = ExtResource("4_sx5rw")
|
||
|
|
||
|
[node name="Impostor" type="MeshInstance3D" parent="."]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.01, 0)
|
||
|
material_override = SubResource("ShaderMaterial_036b0")
|
||
|
instance_shader_parameters/alpha = 0.471145
|
||
|
mesh = SubResource("PlaneMesh_dwbse")
|
||
|
skeleton = NodePath("../..")
|