fix: resolve scene dependency errors and missing UID in main.tscn
- WaterBody.tscn, WaterfallBody.tscn: gdshader files were referenced with type="Material" instead of type="Shader". Wrapped each shader in a ShaderMaterial sub-resource so Godot can load them. - ChimneySmoke.tscn: reordered sub-resources so StandardMaterial3D is defined before QuadMesh that references it. - WaterfallMist.tscn: fixed node type GpuParticles3D -> GPUParticles3D (case-sensitive class name in Godot 4.7). - jajce_world.gd: added explicit Vector3 type annotation to fix 'Cannot infer the type of pos variable' parse error. - main.tscn.uid: created missing UID mapping file. The scene header declared uid="uid://rs3hv73svbpa" but no .uid file existed, causing Godot to reject the scene as unsupported format.
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
uid://rs3hv73svbpa
|
||||||
@@ -19,17 +19,17 @@ scale_max = 0.6
|
|||||||
color = Color(0.8, 0.8, 0.8, 0.6)
|
color = Color(0.8, 0.8, 0.8, 0.6)
|
||||||
alpha_curve = SubResource("2")
|
alpha_curve = SubResource("2")
|
||||||
|
|
||||||
[sub_resource type="QuadMesh" id="4"]
|
[sub_resource type="StandardMaterial3D" id="4"]
|
||||||
size = Vector2(1, 1)
|
|
||||||
material = SubResource("5")
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="5"]
|
|
||||||
albedo_color = Color(1, 1, 1, 1)
|
albedo_color = Color(1, 1, 1, 1)
|
||||||
transparency = 1
|
transparency = 1
|
||||||
shading_mode = 0
|
shading_mode = 0
|
||||||
billboard_mode = 1
|
billboard_mode = 1
|
||||||
cull_mode = 0
|
cull_mode = 0
|
||||||
|
|
||||||
|
[sub_resource type="QuadMesh" id="5"]
|
||||||
|
size = Vector2(1, 1)
|
||||||
|
material = SubResource("4")
|
||||||
|
|
||||||
[node name="ChimneySmoke" type="GPUParticles3D"]
|
[node name="ChimneySmoke" type="GPUParticles3D"]
|
||||||
emitting = true
|
emitting = true
|
||||||
amount = 16
|
amount = 16
|
||||||
@@ -37,5 +37,5 @@ lifetime = 3.0
|
|||||||
one_shot = false
|
one_shot = false
|
||||||
local_coords = true
|
local_coords = true
|
||||||
process_material = SubResource("3")
|
process_material = SubResource("3")
|
||||||
draw_pass_1 = SubResource("4")
|
draw_pass_1 = SubResource("5")
|
||||||
draw_order = 1
|
draw_order = 1
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
[gd_scene load_steps=3 format=3]
|
[gd_scene load_steps=4 format=3]
|
||||||
|
|
||||||
[ext_resource type="Material" path="res://world/jajce/materials/water.gdshader" id="1_water_shader"]
|
[ext_resource type="Shader" path="res://world/jajce/materials/water.gdshader" id="1_water_shader"]
|
||||||
|
|
||||||
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_water"]
|
||||||
|
shader = ExtResource("1_water_shader")
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="Mesh_water_body"]
|
[sub_resource type="BoxMesh" id="Mesh_water_body"]
|
||||||
material = ExtResource("1_water_shader")
|
material = SubResource("ShaderMaterial_water")
|
||||||
size = Vector3(5, 0.08, 56)
|
size = Vector3(5, 0.08, 56)
|
||||||
|
|
||||||
[node name="WaterBody" type="Node3D"]
|
[node name="WaterBody" type="Node3D"]
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
[gd_scene load_steps=3 format=3]
|
[gd_scene load_steps=4 format=3]
|
||||||
|
|
||||||
[ext_resource type="Material" path="res://world/jajce/materials/waterfall.gdshader" id="1_waterfall_shader"]
|
[ext_resource type="Shader" path="res://world/jajce/materials/waterfall.gdshader" id="1_waterfall_shader"]
|
||||||
|
|
||||||
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_waterfall"]
|
||||||
|
shader = ExtResource("1_waterfall_shader")
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="Mesh_waterfall_body"]
|
[sub_resource type="BoxMesh" id="Mesh_waterfall_body"]
|
||||||
material = ExtResource("1_waterfall_shader")
|
material = SubResource("ShaderMaterial_waterfall")
|
||||||
size = Vector3(5, 10, 0.5)
|
size = Vector3(5, 10, 0.5)
|
||||||
|
|
||||||
[node name="WaterfallBody" type="Node3D"]
|
[node name="WaterfallBody" type="Node3D"]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ alpha_curve = SubResource("Curve_alpha")
|
|||||||
emission_shape = 1
|
emission_shape = 1
|
||||||
emission_box_extents = Vector3(2.5, 1.0, 0.5)
|
emission_box_extents = Vector3(2.5, 1.0, 0.5)
|
||||||
|
|
||||||
[node name="WaterfallMist" type="GpuParticles3D"]
|
[node name="WaterfallMist" type="GPUParticles3D"]
|
||||||
emitting = true
|
emitting = true
|
||||||
amount = 48
|
amount = 48
|
||||||
lifetime = 2.5
|
lifetime = 2.5
|
||||||
|
|||||||
Reference in New Issue
Block a user