feat: implement water shader and environment for free mode arena

This commit is contained in:
Yogi Wiguna
2026-03-31 15:59:00 +08:00
parent 3454710f2c
commit 1e6da89fff
16 changed files with 337 additions and 116 deletions
+33
View File
@@ -1,8 +1,41 @@
[gd_scene format=3 uid="uid://nwpaqt6drdkr"]
[ext_resource type="PackedScene" uid="uid://b1l0x4yf3lbx8" path="res://assets/models/arena/free_mode/Terrainv2.gltf" id="1_37t6b"]
[ext_resource type="Material" uid="uid://xifgjdr8285d" path="res://assets/models/arena/free_mode/water_shader.tres" id="2_bw67x"]
[ext_resource type="Texture2D" uid="uid://dep1ng3aqb2jw" path="res://assets/models/arena/free_mode/sky_sea_01.png" id="3_8esiu"]
[sub_resource type="PlaneMesh" id="PlaneMesh_8esiu"]
material = ExtResource("2_bw67x")
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_xj13a"]
panorama = ExtResource("3_8esiu")
[sub_resource type="Sky" id="Sky_p4wg4"]
sky_material = SubResource("PanoramaSkyMaterial_xj13a")
[sub_resource type="Environment" id="Environment_8v6kw"]
background_mode = 2
sky = SubResource("Sky_p4wg4")
ambient_light_source = 3
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_sky_contribution = 0.5
reflected_light_source = 2
[node name="Freemode" type="Node3D" unique_id=355029811]
transform = Transform3D(100, 0, 0, 0, 100, 0, 0, 0, 100, 10.565, -0.57, 8.139)
[node name="Terrainv2" parent="." unique_id=1519605696 instance=ExtResource("1_37t6b")]
[node name="Water" type="MeshInstance3D" parent="." unique_id=289309951]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.14561673, 0)
mesh = SubResource("PlaneMesh_8esiu")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=831804132]
transform = Transform3D(0.23387258, -0.9458177, 0.2252387, -0.400554, 0.11736052, 0.90872604, -0.88592327, -0.30274636, -0.35140368, 0.1, 0.1, 0.13)
light_color = Color(0.98039216, 0.83137256, 0.70980394, 1)
shadow_enabled = true
shadow_bias = 0.2
shadow_normal_bias = 5.0
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=936572897]
environment = SubResource("Environment_8v6kw")