giants-godot/assets/Water.tscn
2021-09-17 15:04:05 +02:00

86 lines
2.5 KiB
Plaintext

[gd_scene load_steps=12 format=2]
[ext_resource path="res://assets/all_gbs/textures/M_3w_L2_seabed.tga" type="Texture" id=1]
[ext_resource path="res://assets/terrains/square_one_1/water_normal_2.png" type="Texture" id=2]
[ext_resource path="res://assets/all_gbs/textures/M_3w_L2_sea.tga" type="Texture" id=3]
[ext_resource path="res://assets/TexturesCom_WaterPlain0017_2_seamless_S_norm.tga" type="Texture" id=4]
[ext_resource path="res://assets/Water.gd" type="Script" id=5]
[sub_resource type="SpatialMaterial" id=1]
flags_transparent = true
params_cull_mode = 2
albedo_color = Color( 0.290196, 0.568627, 0.529412, 1 )
albedo_texture = ExtResource( 3 )
roughness = 0.31
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 2 )
refraction_enabled = true
refraction_scale = 0.05
refraction_texture_channel = 0
uv1_scale = Vector3( 1000, 1000, 1000 )
uv1_offset = Vector3( 1.9554, 1.9554, 1.9554 )
[sub_resource type="PlaneMesh" id=2]
material = SubResource( 1 )
[sub_resource type="Animation" id=3]
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:mesh:material:uv1_offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 2, 2, 2 ) ]
}
[sub_resource type="SpatialMaterial" id=4]
flags_transparent = true
albedo_texture = ExtResource( 1 )
metallic = 1.0
roughness = 0.0
normal_enabled = true
normal_scale = 0.12
normal_texture = ExtResource( 4 )
refraction_enabled = true
refraction_scale = -0.05
refraction_texture = ExtResource( 2 )
refraction_texture_channel = 0
proximity_fade_enable = true
proximity_fade_distance = 5.0
[sub_resource type="PlaneMesh" id=5]
material = SubResource( 4 )
size = Vector2( 1, 1 )
[sub_resource type="BoxShape" id=6]
extents = Vector3( 0.5, 0.1, 0.5 )
[node name="Water3" type="MeshInstance"]
mesh = SubResource( 2 )
material/0 = null
script = ExtResource( 5 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "uv_water"
playback_speed = 0.1
anims/uv_water = SubResource( 3 )
[node name="WaterBed" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.004, 0 )
mesh = SubResource( 5 )
material/0 = null
[node name="Area" type="Area" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0 )
shape = SubResource( 6 )
[connection signal="body_entered" from="Area" to="." method="_on_Area_body_entered"]