39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
[gd_scene load_steps=9 format=2]
|
|
|
|
[ext_resource path="res://addons/interactive_water/Water.shader" type="Shader" id=1]
|
|
[ext_resource path="res://addons/interactive_water/Water.gd" type="Script" id=3]
|
|
[ext_resource path="res://addons/interactive_water/WaterUpdateMaterial.tres" type="Material" id=4]
|
|
[ext_resource path="res://addons/interactive_water/PersistentShaderTexture.tscn" type="PackedScene" id=5]
|
|
|
|
[sub_resource type="ViewportTexture" id=1]
|
|
viewport_path = NodePath("WaterHeightViewport")
|
|
|
|
[sub_resource type="ShaderMaterial" id=2]
|
|
resource_local_to_scene = true
|
|
shader = ExtResource( 1 )
|
|
shader_param/water_heights = SubResource( 1 )
|
|
|
|
[sub_resource type="PlaneMesh" id=3]
|
|
subdivide_width = 512
|
|
subdivide_depth = 512
|
|
|
|
[sub_resource type="PlaneShape" id=4]
|
|
|
|
[node name="Water" type="Spatial"]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="WaterMesh" type="MeshInstance" parent="."]
|
|
material_override = SubResource( 2 )
|
|
mesh = SubResource( 3 )
|
|
material/0 = null
|
|
|
|
[node name="StaticBody" type="StaticBody" parent="WaterMesh"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="WaterMesh/StaticBody"]
|
|
shape = SubResource( 4 )
|
|
|
|
[node name="WaterHeights" parent="." instance=ExtResource( 5 )]
|
|
size = Vector2( 512, 512 )
|
|
shader_material = ExtResource( 4 )
|