74 lines
817 KiB
Plaintext
74 lines
817 KiB
Plaintext
|
[gd_scene load_steps=14 format=3 uid="uid://cvcy4ye5phhn4"]
|
||
|
|
||
|
[ext_resource type="ArrayMesh" uid="uid://bte61gg2ejn5e" path="res://grass-stalk.obj" id="1_4cp3x"]
|
||
|
[ext_resource type="Shader" uid="uid://db6rwrkgyosy0" path="res://grass.gdshader" id="2_8rwdi"]
|
||
|
|
||
|
[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="ShaderMaterial" id="ShaderMaterial_fj7yv"]
|
||
|
render_priority = 0
|
||
|
shader = ExtResource("2_8rwdi")
|
||
|
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 = 7.0
|
||
|
|
||
|
[sub_resource type="MultiMesh" id="MultiMesh_n2gon"]
|
||
|
transform_format = 1
|
||
|
instance_count = 10000
|
||
|
mesh = ExtResource("1_4cp3x")
|
||
|
buffer = PackedFloat32Array(0.703672, 0, -0.711932, 2.46375, 0, 1.001, 0, 0, 0.711932, 0, 0.703672, -1.45002, 0.281274, 0, 0.960669, -1.4702, 0, 1.001, 0, 0, -0.960669, 0, 0.281274, 0.836612, -0.410957, 0, 0.912751, -0.520338, 0, 1.001, 0, 0, -0.912751, 0, -0.410957, -1.87641, 0.586721, 0, -0.811024, -0.804944, 0, 1.001, 0, 0, 0.811024, 0, 0.586721, -0.233558, -0.923319, 0, 0.38663, 0.724371, 0, 1.001, 0, 0, -0.38663, 0, -0.923319, -1.81602, 0.362168, 0, 0.933186, -2.05919, 0, 1.001, 0, 0, -0.933186, 0, 0.362168, -1.85056, 0.646447, 0, 0.764269, 1.03836, 0, 1.001, 0, 0, -0.764269, 0, 0.646447, 1.29923, -0.621615, 0, -0.7846, -0.554425, 0, 1.001, 0, 0, 0.7846, 0, -0.621615, -1.85095, -0.700694, 0, -0.714863, 0.659271, 0, 1.001, 0, 0, 0.714863, 0, -0.700694, 1.38326, -0.858617, 0, -0.514565, -0.242139, 0, 1.001, 0, 0, 0.514565, 0, -0.858617, -2.00647, 1.001, 0, 0.0030058, -1.41579, 0, 1.001, 0, 0, -0.0030058, 0, 1.001, 1.69998, -0.950362, 0, -0.314344, -1.30168, 0, 1.001, 0, 0, 0.314344, 0, -0.950362, -0.0806105, 0.668488, 0, 0.745067, -1.14381, 0, 1.001, 0, 0, -0.745067, 0, 0.668488, 0.0613043, 0.998795, 0, -0.0664075, 0.756486, 0, 1.001, 0, 0, 0.0664075, 0, 0.998795, -1.92316, -0.858774, 0, -0.514303, 1.75347, 0, 1.001, 0, 0, 0.514303, 0, -0.858774, -1.17831, 0.853441, 0, -0.523105, -1.52114, 0, 1.001, 0, 0, 0.523105, 0, 0.853441, -0.420716, -0.40115, 0, 0.917104, -0.921026, 0, 1.001, 0, 0, -0.917104, 0, -0.40115, 1.74473, 0.250566, 0, 0.969132, 2.32054, 0, 1.001, 0, 0, -0.969132, 0, 0.250566, -2.1805, 0.920217, 0, -0.393957, 0.519851, 0, 1.001, 0, 0, 0.393957, 0, 0.920217, 1.66785, -0.986431, 0, -0.170162, -0.183965, 0, 1.001, 0, 0, 0.170162, 0, -0.986431, 0.735678, -0.0378727, 0, -1.00028, -0.892301, 0, 1.001, 0, 0, 1.00028, 0, -0.0378727, 1.31676, -0.080121, 0, -0.997788, -1.97232, 0, 1.001, 0, 0, 0.997788, 0, -0.080121, 1.31777, -0.0791758, 0, -0.997864, 0.0913248, 0, 1.001, 0, 0, 0.997864, 0, -0.0791758, 0.285451, -0.770845, 0, -0.638591, 2.03604, 0, 1.001, 0, 0, 0.638591, 0, -0.770845, -0.269324, -0.212516, 0, 0.978181, -2.0644, 0, 1.001, 0, 0, -0.978181, 0, -0.212516, -1.54344, 0.597545, 0, 0.803082, -1.92463, 0, 1.001, 0, 0, -0.803082, 0, 0.597545, 0.376113, 0.98749, 0, -0.163904, -1.37401, 0, 1.001, 0, 0, 0.163904, 0, 0.98749, 0.994614, 0.30761, 0, 0.952564, 2.1768, 0, 1.001, 0, 0, -0.952564, 0, 0.30761, 1.17254, -0.0573464, 0, 0.999356, 0.479338, 0, 1.001, 0, 0, -0.999356, 0, -0.0573464, 0.545908, 0.90428, 0, 0.429278, -2.06803, 0, 1.001, 0, 0, -0.429278, 0, 0.90428, 0.0511194, -0.520457, 0, 0.855059, 1.9709, 0, 1.001, 0, 0, -0.855059, 0, -0.520457, 0.509161, 0.936345, 0, 0.353921, 1.94847, 0, 1.001, 0, 0, -0.353921, 0, 0.936345, 2.05523, 0.691629, 0, 0.723637, 1.38024, 0, 1.001, 0, 0, -0.723637, 0, 0.691629, 2.37936, 0.992857, 0, 0.127423, 0.568558, 0, 1.001, 0, 0, -0.127423, 0, 0.992857, 0.411266, 0.566366, 0, 0.825367, 0.028753, 0, 1.001, 0, 0, -0.825367, 0, 0.566366, -1.7736, 0.980012, 0, 0.203907, 2.11576, 0, 1.001, 0, 0, -0.203907, 0, 0.980012, 1.95903, -0.0436389, 0, -1.00005, 0.736952, 0, 1.001, 0, 0, 1.00005, 0, -0.0436389, 1.76648, -0.997786, 0, -0.0801521, 0.922703, 0, 1.001, 0, 0, 0.0801521, 0, -0.997786, -2.42096, 0.424958, 0, -0.906318, -0.105512, 0, 1.001, 0, 0, 0.906318, 0, 0.424958, 0.130179, -0.113558, 0, -0.994538, -0.910232, 0, 1.001, 0, 0, 0.994538, 0, -0.113558, 1.43757, 0.854507, 0, 0.521363, -0.977958, 0, 1.001, 0, 0, -0.521363, 0, 0.854507, -0.774653, 0.352827, 0, -0.936757, 1.75564, 0, 1.001, 0, 0, 0.936757, 0, 0.352827, 0.512662, 0.0793324, 0, -0.997851, -1.60937, 0, 1.001, 0, 0, 0.997851, 0, 0.0793324, -0.358362, 0.234888, 0, 0.973051, 1.81775, 0, 1.001, 0, 0, -0.973051, 0, 0.234888, 2.45021, 0.132157, 0, 0.992238, 0.522241, 0, 1.001, 0, 0, -0.992238, 0, 0.132157, 1.88692, 0.212408, 0, 0.978204, -1.81416, 0, 1.001, 0, 0, -0.978204, 0, 0.212408, 0.107904, 0.522414, 0, -0.853865, -1.38736, 0, 1.001, 0, 0, 0.853865, 0, 0.522414, 0.532656, -0.909351, 0, -0.418428, -1.69589, 0, 1.001, 0, 0, 0.418428, 0, -0.909351, -0.170482, -0.684478, 0, -0.730405, -1.48619, 0, 1.001, 0, 0, 0.730405, 0,
|
||
|
|
||
|
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_3gqex"]
|
||
|
ground_color = Color(1, 1, 1, 1)
|
||
|
energy_multiplier = 3.0
|
||
|
|
||
|
[sub_resource type="Sky" id="Sky_a067n"]
|
||
|
sky_material = SubResource("PhysicalSkyMaterial_3gqex")
|
||
|
|
||
|
[sub_resource type="Environment" id="Environment_cjdki"]
|
||
|
background_mode = 2
|
||
|
sky = SubResource("Sky_a067n")
|
||
|
|
||
|
[node name="World" type="Node3D"]
|
||
|
|
||
|
[node name="Ground" type="MeshInstance3D" parent="."]
|
||
|
material_override = SubResource("StandardMaterial3D_301yx")
|
||
|
mesh = SubResource("PlaneMesh_n0l7m")
|
||
|
|
||
|
[node name="Grass" type="MultiMeshInstance3D" parent="."]
|
||
|
material_override = SubResource("ShaderMaterial_fj7yv")
|
||
|
cast_shadow = 0
|
||
|
multimesh = SubResource("MultiMesh_n2gon")
|
||
|
|
||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||
|
environment = SubResource("Environment_cjdki")
|
||
|
|
||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="WorldEnvironment"]
|
||
|
transform = Transform3D(-0.926267, -0.376806, -0.00684522, -0.363545, 0.888589, 0.279724, -0.0993189, 0.261587, -0.960056, -0.156811, 0.610055, 0)
|
||
|
light_energy = 3.0
|
||
|
shadow_enabled = true
|