Moves stuff around, made a main menu and scene mgr
This commit is contained in:
parent
b2e3a3957b
commit
6c023a60a6
37 changed files with 888 additions and 214 deletions
BIN
Entities/Grass/assets/grass.res
Normal file
BIN
Entities/Grass/assets/grass.res
Normal file
Binary file not shown.
BIN
Entities/Grass/assets/grass2_mesh.res
Normal file
BIN
Entities/Grass/assets/grass2_mesh.res
Normal file
Binary file not shown.
|
|
@ -1,7 +1,6 @@
|
|||
[gd_scene load_steps=17 format=3 uid="uid://bwcevwwphdvq"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://bwcevwwphdvq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bq7hia2dit80y" path="res://Entities/GroundTile/scripts/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"]
|
||||
|
|
@ -24,7 +23,6 @@ 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
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ func _ready() -> void:
|
|||
|
||||
# Load mesh once and reuse
|
||||
if grass_mesh == null:
|
||||
grass_mesh = load("res://Stages/Test3D/assets/stylizedGrassMeshes/grass2_mesh.res")
|
||||
grass_mesh = load("res://Entities/Grass/assets/grass2_mesh.res")
|
||||
|
||||
func setup_multimesh() -> void:
|
||||
if parent_node == null:
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ func apply_tree_properties():
|
|||
func setup_outline_material() -> void:
|
||||
# Create outline material with your shader
|
||||
outline_material = ShaderMaterial.new()
|
||||
outline_material.shader = preload("res://outline.gdshader")
|
||||
outline_material.shader = preload("res://Common/shaders/outline.gdshader")
|
||||
outline_material.set_shader_parameter("color", Vector3(0.702, 0.557, 0.259))
|
||||
|
||||
func find_all_mesh_instances(node: Node):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue