Refactors tree spawning and rendering: - Adds seasonal color variations for trees via scripts. - Introduces `ColorStorage` to manage tree and grass colors - Removes unused code from tree spawning logic. - Adjusts ground tile color for better visual appeal. - Hides debug text on ground tiles.
71 lines
2.8 KiB
Text
71 lines
2.8 KiB
Text
[gd_scene load_steps=13 format=3 uid="uid://bwcevwwphdvq"]
|
|
|
|
[ext_resource type="Script" uid="uid://bq7hia2dit80y" path="res://Entities/GroundTile/ground_tile.gd" id="1_uwxqs"]
|
|
[ext_resource type="ArrayMesh" uid="uid://duj6747nq4qsk" path="res://Stages/Test3D/assets/stylizedGrassMeshes/grass.res" id="3_8mhad"]
|
|
[ext_resource type="Script" uid="uid://cacp8ncwuofuj" path="res://Entities/GroundTile/scripts/grass.gd" id="3_224hx"]
|
|
[ext_resource type="Material" uid="uid://b1miqvl8lus75" path="res://Stages/Test3D/GrassMaterialOverride.tres" id="3_f37ob"]
|
|
[ext_resource type="Script" uid="uid://btju6b83mvgvk" path="res://Entities/GroundTile/scripts/grass_multimesh.gd" id="4_3wpcb"]
|
|
[ext_resource type="Script" uid="uid://cqko4m7cbxsfb" path="res://Entities/GroundTile/scripts/trees.gd" id="7_7lc7k"]
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_h4g11"]
|
|
viewport_path = NodePath("DebugText/DebugTextViewport")
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_f37ob"]
|
|
albedo_color = Color(0.196078, 0.392157, 0.196078, 1)
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_oqd8f"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_h4g11"]
|
|
size = Vector3(2, 2, 2)
|
|
|
|
[sub_resource type="MultiMesh" id="MultiMesh_3wpcb"]
|
|
transform_format = 1
|
|
mesh = ExtResource("3_8mhad")
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_f37ob"]
|
|
flip_faces = true
|
|
|
|
[node name="GroundTile" type="Node3D"]
|
|
script = ExtResource("1_uwxqs")
|
|
|
|
[node name="DebugText" type="Node3D" parent="."]
|
|
visible = false
|
|
|
|
[node name="DebugTextViewport" type="SubViewport" parent="DebugText"]
|
|
size = Vector2i(50, 50)
|
|
|
|
[node name="DebugTextLabel" type="Label" parent="DebugText/DebugTextViewport"]
|
|
offset_right = 40.0
|
|
offset_bottom = 23.0
|
|
text = "Hello world"
|
|
|
|
[node name="DebugTextBillboard" type="Sprite3D" parent="DebugText"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0461426, 0.199493, 0.0660986)
|
|
texture = SubResource("ViewportTexture_h4g11")
|
|
|
|
[node name="Ground" type="MeshInstance3D" parent="."]
|
|
material_override = SubResource("StandardMaterial3D_f37ob")
|
|
cast_shadow = 0
|
|
mesh = SubResource("PlaneMesh_oqd8f")
|
|
|
|
[node name="GroundCollision" type="StaticBody3D" parent="Ground"]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground/GroundCollision"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
|
shape = SubResource("BoxShape3D_h4g11")
|
|
|
|
[node name="Grass" type="Node3D" parent="."]
|
|
script = ExtResource("3_224hx")
|
|
|
|
[node name="GrassMultimesh" type="MultiMeshInstance3D" parent="Grass"]
|
|
material_override = ExtResource("3_f37ob")
|
|
cast_shadow = 0
|
|
multimesh = SubResource("MultiMesh_3wpcb")
|
|
script = ExtResource("4_3wpcb")
|
|
|
|
[node name="GrassTarget" type="MeshInstance3D" parent="Grass"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0111763, 0)
|
|
mesh = SubResource("PlaneMesh_f37ob")
|
|
|
|
[node name="Trees" type="Node3D" parent="."]
|
|
script = ExtResource("7_7lc7k")
|