forked from woofmeow/straywild
fix: restore ocean surface motion
This commit is contained in:
parent
132f3ef288
commit
805885a9f1
4 changed files with 27 additions and 4 deletions
|
|
@ -108,6 +108,9 @@ func set_light_performance_profile(enabled: bool) -> void:
|
|||
if enabled
|
||||
else NORMAL_SALT_WATER_MATERIAL
|
||||
)
|
||||
var surface_motion := ocean as WaterSurfaceMotion
|
||||
if surface_motion != null:
|
||||
surface_motion.set_motion_enabled(not enabled)
|
||||
|
||||
|
||||
func is_foliage_wind_enabled() -> bool:
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
[ext_resource type="Material" path="res://world/materials/stylized_water.tres" id="13_water"]
|
||||
[ext_resource type="ArrayMesh" path="res://world/generated/shorelines/starter_ocean_shoreline.tres" id="17_ocean_shoreline"]
|
||||
[ext_resource type="Material" path="res://world/materials/stylized_water_fresh.tres" id="19_fresh_water"]
|
||||
[ext_resource type="Script" uid="uid://drdjm443o35tc" path="res://world/water_surface_motion.gd" id="20_surface_motion"]
|
||||
[ext_resource type="Script" path="res://world/water/shoreline_ribbon_baker.gd" id="21_shoreline_baker"]
|
||||
[ext_resource type="Script" path="res://world/water/shoreline_ribbon_config.gd" id="22_shoreline_config"]
|
||||
[ext_resource type="Script" path="res://world/digging/diggable_area_3d.gd" id="23_diggable_area"]
|
||||
|
|
@ -205,6 +206,7 @@ fishing_region_path = NodePath("FishingRegions/OceanFishingRegion")
|
|||
[node name="VisualWater" type="MeshInstance3D" parent="WaterBodies/Ocean" unique_id=1176408937]
|
||||
material_override = ExtResource("13_water")
|
||||
mesh = SubResource("OceanWaterMesh")
|
||||
script = ExtResource("20_surface_motion")
|
||||
|
||||
[node name="FishingRegions" type="Node3D" parent="WaterBodies/Ocean" unique_id=205598473]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue