[gd_scene load_steps=36 format=3 uid="uid://bm2o3mex10v11"]

[ext_resource type="Terrain3DStorage" uid="uid://bu1gewgsgc5hm" path="res://levels/debug_level/terrain_3d_storage.res" id="1_nlsu2"]
[ext_resource type="Texture2D" path="res://assets/textures/grass_fairway/grass_fairway_albedo.dds" id="2_e4m27"]
[ext_resource type="Texture2D" path="res://assets/textures/grass_rough/grass_rough_albedo.dds" id="4_p0awb"]
[ext_resource type="Texture2D" path="res://assets/textures/grass_rough/grass_rough_normal.dds" id="4_yhjhv"]
[ext_resource type="Texture2D" path="res://assets/textures/grass_fairway/grass_fairway_normal.dds" id="5_o361t"]
[ext_resource type="Shader" path="res://src/shaders/psx_water.gdshader" id="6_0efu4"]
[ext_resource type="Texture2D" uid="uid://c47ern0l2d50r" path="res://assets/vista_2.png" id="6_ectru"]
[ext_resource type="Texture2D" uid="uid://con5a36t6n6sq" path="res://assets/textures/clear_sea_water_2048x2048.png" id="7_t86h2"]
[ext_resource type="PackedScene" uid="uid://cy7t2tc4y3b4" path="res://src/player/shot_setup/shot_setup.tscn" id="8_h44v5"]
[ext_resource type="Script" path="res://src/world/ball_zone/ball_zone.gd" id="9_jwlau"]
[ext_resource type="PackedScene" uid="uid://dagh38vap4t1d" path="res://src/scenery/city/concrete_building_1.tscn" id="10_lf15j"]
[ext_resource type="PackedScene" uid="uid://cjubxs7peir5k" path="res://src/scenery/city/kana_signboard.tscn" id="11_evxup"]
[ext_resource type="PackedScene" uid="uid://di7aql54lksn7" path="res://src/scenery/trees/palm_tree/palm_tree.tscn" id="12_sswxf"]
[ext_resource type="PackedScene" uid="uid://c7l58wuuahn7w" path="res://src/props/flag.tscn" id="13_6jtao"]
[ext_resource type="Texture2D" uid="uid://dj60e8ri2fco" path="res://assets/models/scenery/city/concrete_building_1/concrete_building_1.png" id="14_y7s2h"]

[sub_resource type="FastNoiseLite" id="FastNoiseLite_rpgb7"]
noise_type = 0
frequency = 1.0

[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_sb318"]
width = 256
height = 256
seamless = true
noise = SubResource("FastNoiseLite_rpgb7")

[sub_resource type="Terrain3DMaterial" id="Terrain3DMaterial_woy2k"]
_shader_parameters = {
"blend_sharpness": 0.87,
"height_blending": true,
"macro_variation1": Color(0.964742, 0.964742, 0.964742, 1),
"macro_variation2": Color(1, 1, 1, 1),
"noise1_angle": 0.0,
"noise1_offset": Vector2(0.5, 0.5),
"noise1_scale": 0.062,
"noise2_scale": 0.076,
"noise3_scale": 0.021,
"noise_texture": SubResource("NoiseTexture2D_sb318"),
"vertex_normals_distance": 128.0
}
texture_filtering = 1

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ly4sm"]
cull_mode = 2
vertex_color_use_as_albedo = true
backlight_enabled = true
backlight = Color(0.5, 0.5, 0.5, 1)

[sub_resource type="Terrain3DMeshAsset" id="Terrain3DMeshAsset_8g62o"]
height_offset = 0.5
density = 10.0
material_override = SubResource("StandardMaterial3D_ly4sm")
generated_type = 1

[sub_resource type="Terrain3DTextureAsset" id="Terrain3DTextureAsset_kocfk"]
name = "Rough Grass"
albedo_texture = ExtResource("4_p0awb")
normal_texture = ExtResource("4_yhjhv")
uv_scale = 0.01

[sub_resource type="Terrain3DTextureAsset" id="Terrain3DTextureAsset_vmhlw"]
name = "Fairway Grass"
id = 1
albedo_texture = ExtResource("2_e4m27")
normal_texture = ExtResource("5_o361t")
uv_scale = 0.01

[sub_resource type="Terrain3DAssets" id="Terrain3DAssets_eq5uw"]
mesh_list = Array[Terrain3DMeshAsset]([SubResource("Terrain3DMeshAsset_8g62o")])
texture_list = Array[Terrain3DTextureAsset]([SubResource("Terrain3DTextureAsset_kocfk"), SubResource("Terrain3DTextureAsset_vmhlw")])

[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_h8tes"]
panorama = ExtResource("6_ectru")

[sub_resource type="Sky" id="Sky_2xshh"]
sky_material = SubResource("PanoramaSkyMaterial_h8tes")

[sub_resource type="Environment" id="Environment_k6wwx"]
background_mode = 2
sky = SubResource("Sky_2xshh")
ambient_light_source = 2
ambient_light_color = Color(0.838897, 0.838897, 0.838897, 1)
volumetric_fog_enabled = true
volumetric_fog_density = 0.005
volumetric_fog_emission = Color(0, 1, 1, 1)
volumetric_fog_length = 32.0

[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_ypy22"]
dof_blur_far_distance = 200.0
dof_blur_far_transition = 800.0
dof_blur_near_enabled = true
dof_blur_near_distance = 1.0
dof_blur_near_transition = 0.5

[sub_resource type="FastNoiseLite" id="FastNoiseLite_mgjj0"]
fractal_type = 2

[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_0xqld"]
in_3d_space = true
seamless = true
noise = SubResource("FastNoiseLite_mgjj0")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_dkdxa"]
render_priority = 0
shader = ExtResource("6_0efu4")
shader_parameter/albedo = Color(0.427451, 0.917647, 1, 1)
shader_parameter/scroll_speed1 = Vector2(0.05, 0)
shader_parameter/scroll_speed2 = Vector2(-0.03, 0)
shader_parameter/blend_factor = 0.5
shader_parameter/scale1 = Vector2(128, 128)
shader_parameter/scale2 = Vector2(256, 256)
shader_parameter/wave_strength = 0.4
shader_parameter/wave_scale = 0.02
shader_parameter/pixelation_level = 128
shader_parameter/FoamSize = 1.0
shader_parameter/WaterOpacity = 0.9
shader_parameter/FoamGlowIntensity = 0.5
shader_parameter/water_texture1 = ExtResource("7_t86h2")
shader_parameter/water_texture2 = ExtResource("7_t86h2")
shader_parameter/noise_texture = SubResource("NoiseTexture2D_0xqld")

[sub_resource type="PlaneMesh" id="PlaneMesh_2ywhk"]
material = SubResource("ShaderMaterial_dkdxa")
size = Vector2(4096, 4096)
subdivide_width = 256
subdivide_depth = 256

[sub_resource type="BoxShape3D" id="BoxShape3D_x3wvm"]
size = Vector3(4096, 2, 4096)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5p7vs"]
albedo_texture = ExtResource("14_y7s2h")
uv1_scale = Vector3(300, 800, 1)

[sub_resource type="BoxMesh" id="BoxMesh_20p1k"]
material = SubResource("StandardMaterial3D_5p7vs")
size = Vector3(300, 1, 800)

[sub_resource type="BoxShape3D" id="BoxShape3D_g31tw"]
size = Vector3(300, 1, 800)

[node name="TestLevel" type="Node3D"]

[node name="Terrain3D" type="Terrain3D" parent="."]
storage = ExtResource("1_nlsu2")
material = SubResource("Terrain3DMaterial_woy2k")
assets = SubResource("Terrain3DAssets_eq5uw")

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_k6wwx")
camera_attributes = SubResource("CameraAttributesPractical_ypy22")

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.29404, 0.955793, 0, -0.955793, 0.29404, 0, 0, 0)

[node name="WaterTable" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
mesh = SubResource("PlaneMesh_2ywhk")

[node name="BallZone" type="Area3D" parent="WaterTable"]
script = ExtResource("9_jwlau")
water_hazard = true

[node name="CollisionShape3D" type="CollisionShape3D" parent="WaterTable/BallZone"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.2, 0)
shape = SubResource("BoxShape3D_x3wvm")

[node name="ShotSetup" parent="." instance=ExtResource("8_h44v5")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 218.499, 4, 294.341)

[node name="Buildings" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 129.404, -9.53674e-07, 309.4)

[node name="ConcreteBuilding1" parent="Buildings" instance=ExtResource("10_lf15j")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0)

[node name="KanaSignboard" parent="Buildings/ConcreteBuilding1" instance=ExtResource("11_evxup")]
transform = Transform3D(-8.74228e-08, 0, -2, 0, 2, 0, 2, 0, -8.74228e-08, 10.8, 12, 7)

[node name="ConcreteBuilding2" parent="Buildings" instance=ExtResource("10_lf15j")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, 20)

[node name="ConcreteBuilding3" parent="Buildings" instance=ExtResource("10_lf15j")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, 40)

[node name="PalmTree" parent="." instance=ExtResource("12_sswxf")]
transform = Transform3D(-0.69799, 0, -0.716107, 0, 1, 0, 0.716107, 0, -0.69799, 140.872, -9.53674e-07, 296.932)

[node name="Flag" parent="." instance=ExtResource("13_6jtao")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 540, 4, 452)

[node name="DebugTable" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 160.1, 0, 885.605)
mesh = SubResource("BoxMesh_20p1k")

[node name="StaticBody3D" type="StaticBody3D" parent="DebugTable"]

[node name="CollisionShape3D" type="CollisionShape3D" parent="DebugTable/StaticBody3D"]
shape = SubResource("BoxShape3D_g31tw")
