godot-grass/world.tscn

66 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

2025-08-25 16:27:06 +02:00
[gd_scene load_steps=13 format=3 uid="uid://cvcy4ye5phhn4"]
2025-05-25 13:35:17 +02:00
2025-08-25 16:27:06 +02:00
[ext_resource type="Script" uid="uid://bi74il47aar6l" path="res://grass_grid.gd" id="2_fj7yv"]
[ext_resource type="Shader" path="res://impostor_grass.gdshader" id="3_aqk2v"]
[ext_resource type="Texture2D" uid="uid://bkm3w1ujws8d7" path="res://grass_normals.png" id="4_036b0"]
2025-08-25 16:20:32 +02:00
[ext_resource type="Environment" uid="uid://c6gg4l7fynga2" path="res://environment.tres" id="4_aqk2v"]
2025-05-25 13:35:17 +02:00
2025-08-25 16:27:06 +02:00
[sub_resource type="FastNoiseLite" id="FastNoiseLite_aqk2v"]
frequency = 0.1
2025-05-25 13:35:17 +02:00
2025-08-25 16:27:06 +02:00
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_036b0"]
seamless_blend_skirt = 0.0
noise = SubResource("FastNoiseLite_aqk2v")
2025-05-25 13:35:17 +02:00
[sub_resource type="FastNoiseLite" id="FastNoiseLite_tid6t"]
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_h2qfw"]
seamless = true
noise = SubResource("FastNoiseLite_tid6t")
2025-05-25 15:24:01 +02:00
[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")
2025-08-25 16:27:06 +02:00
[sub_resource type="ShaderMaterial" id="ShaderMaterial_dwbse"]
2025-05-25 13:35:17 +02:00
render_priority = 0
2025-08-25 16:27:06 +02:00
shader = ExtResource("3_aqk2v")
2025-05-25 13:35:17 +02:00
shader_parameter/color_small = Color(0.3, 0.6, 0.1, 1)
shader_parameter/color_large = Color(0.9, 0.9, 0.2, 1)
2025-08-25 16:27:06 +02:00
shader_parameter/ground_color = Color(0, 0, 0, 1)
2025-05-25 13:35:17 +02:00
shader_parameter/patch_noise = SubResource("NoiseTexture2D_h2qfw")
2025-08-25 16:27:06 +02:00
shader_parameter/patch_scale = 5.0
shader_parameter/high_frequency_noise = SubResource("NoiseTexture2D_036b0")
shader_parameter/baked_normals = ExtResource("4_036b0")
2025-05-25 15:24:01 +02:00
shader_parameter/wind_noise = SubResource("NoiseTexture2D_aqk2v")
2025-08-25 16:27:06 +02:00
shader_parameter/wind_strength = 0.1
2025-05-25 15:24:01 +02:00
shader_parameter/wind_direction = Vector2(1, 0)
shader_parameter/wind_bend_strength = 2.0
2025-08-25 16:27:06 +02:00
shader_parameter/wind_ao_affect = 1.5
2025-05-25 13:35:17 +02:00
2025-08-25 16:27:06 +02:00
[sub_resource type="PlaneMesh" id="PlaneMesh_pkg7o"]
size = Vector2(50000, 50000)
2025-05-25 15:24:01 +02:00
2025-05-25 13:35:17 +02:00
[node name="World" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
2025-08-25 16:20:32 +02:00
environment = ExtResource("4_aqk2v")
2025-05-25 13:35:17 +02:00
[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)
2025-08-25 16:20:32 +02:00
light_energy = 1.5
2025-05-25 13:35:17 +02:00
shadow_enabled = true
2025-08-25 16:27:06 +02:00
[node name="GrassChunks" type="Node3D" parent="."]
script = ExtResource("2_fj7yv")
[node name="FarImpostorPlane" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.01, 0)
material_override = SubResource("ShaderMaterial_dwbse")
mesh = SubResource("PlaneMesh_pkg7o")