water_plane.tscn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [gd_scene load_steps=11 format=3 uid="uid://b2a5bjsxw63wr"]
  2. [ext_resource type="Script" path="res://water_plane/water_plane.gd" id="1_ltm8k"]
  3. [ext_resource type="Shader" path="res://water_plane/water_shader.gdshader" id="1_rujqj"]
  4. [ext_resource type="Texture2D" uid="uid://d051ugdf65it1" path="res://assets/polyhaven/industrial_sunset_puresky_2k.hdr" id="3_fdqn0"]
  5. [sub_resource type="Texture2DRD" id="Texture2DRD_gbeoi"]
  6. [sub_resource type="ShaderMaterial" id="ShaderMaterial_qy6ln"]
  7. resource_local_to_scene = true
  8. render_priority = 0
  9. shader = ExtResource("1_rujqj")
  10. shader_parameter/albedo = Color(5.19812e-06, 0.748295, 0.942472, 1)
  11. shader_parameter/metalic = 1.0
  12. shader_parameter/roughness = 0.0
  13. shader_parameter/effect_texture_size = null
  14. shader_parameter/effect_texture = SubResource("Texture2DRD_gbeoi")
  15. [sub_resource type="PlaneMesh" id="PlaneMesh_wl5mm"]
  16. size = Vector2(5, 5)
  17. [sub_resource type="BoxShape3D" id="BoxShape3D_gvcbg"]
  18. size = Vector3(5, 0.01, 5)
  19. [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_xm1lt"]
  20. panorama = ExtResource("3_fdqn0")
  21. [sub_resource type="Sky" id="Sky_ng08w"]
  22. sky_material = SubResource("PanoramaSkyMaterial_xm1lt")
  23. [sub_resource type="Environment" id="Environment_iw7ig"]
  24. background_mode = 2
  25. sky = SubResource("Sky_ng08w")
  26. [node name="WaterPlane" type="Area3D"]
  27. script = ExtResource("1_ltm8k")
  28. damp = 2.0
  29. [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
  30. material_override = SubResource("ShaderMaterial_qy6ln")
  31. mesh = SubResource("PlaneMesh_wl5mm")
  32. skeleton = NodePath("../..")
  33. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  34. shape = SubResource("BoxShape3D_gvcbg")
  35. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
  36. transform = Transform3D(0.983217, 5.59419e-08, 0.182442, -0.178298, 0.211922, 0.960885, -0.0386633, -0.977287, 0.208365, 0, 1.12002, 0)
  37. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  38. environment = SubResource("Environment_iw7ig")