1
Fork 0
mirror of https://github.com/Steffo99/pineapple-surf.git synced 2024-11-25 09:14:18 +00:00
pineapple-surf/island/Island.tscn

87 lines
3.6 KiB
Text

[gd_scene load_steps=14 format=3 uid="uid://bg88gc1w1gw5m"]
[ext_resource type="Shader" path="res://island/Sea.gdshader" id="1_agjfy"]
[ext_resource type="Texture2D" uid="uid://bdoifsf6k0qb8" path="res://assets/water_tile.png" id="1_w6ara"]
[ext_resource type="PackedScene" uid="uid://b5i1sqd88wlle" path="res://player/Player.tscn" id="3_5378m"]
[ext_resource type="PackedScene" uid="uid://cyuqnp5bfan4y" path="res://island/IslandMesh.tscn" id="3_g5ug0"]
[ext_resource type="PackedScene" uid="uid://tahdk48hqxis" path="res://island/HillMesh.tscn" id="4_5ll24"]
[ext_resource type="PackedScene" uid="uid://cxa5irr1atgke" path="res://island/PyramidSmallMesh.tscn" id="5_uf8hd"]
[ext_resource type="PackedScene" uid="uid://bknwefv5ycc3u" path="res://island/PyramidSmolMesh.tscn" id="6_klmt8"]
[sub_resource type="GDScript" id="GDScript_78lo3"]
script/source = "extends Node3D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
for node in $World.get_children():
var material: Material = node.get_active_material(0)
if material is StandardMaterial3D:
material.texture_filter = BaseMaterial3D.TextureFilter.TEXTURE_FILTER_NEAREST
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3uyyi"]
render_priority = 0
shader = ExtResource("1_agjfy")
shader_parameter/speed_x = 1.0
shader_parameter/speed_y = 0.1
shader_parameter/size = 1000.0
shader_parameter/sea = ExtResource("1_w6ara")
[sub_resource type="PlaneMesh" id="PlaneMesh_4ibso"]
material = SubResource("ShaderMaterial_3uyyi")
size = Vector2(1000, 1000)
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_htlhh"]
sky_top_color = Color(0.356863, 0.623529, 0.937255, 1)
sky_horizon_color = Color(0.254902, 0.623529, 0.8, 1)
ground_bottom_color = Color(0.254902, 0.623529, 0.8, 1)
ground_horizon_color = Color(0.254902, 0.623529, 0.8, 1)
ground_curve = 7.89838
[sub_resource type="Sky" id="Sky_j6hso"]
sky_material = SubResource("ProceduralSkyMaterial_htlhh")
[sub_resource type="Environment" id="Environment_302o8"]
background_mode = 2
sky = SubResource("Sky_j6hso")
[node name="Island" type="Node3D"]
script = SubResource("GDScript_78lo3")
[node name="World" type="Node3D" parent="."]
[node name="Sea" type="MeshInstance3D" parent="World"]
mesh = SubResource("PlaneMesh_4ibso")
skeleton = NodePath("../..")
[node name="IslandMesh" parent="World" instance=ExtResource("3_g5ug0")]
[node name="HillMesh" parent="World" instance=ExtResource("4_5ll24")]
[node name="PyramidSmallMesh" parent="World" instance=ExtResource("5_uf8hd")]
[node name="PyramidSmolMesh" parent="World" instance=ExtResource("6_klmt8")]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_302o8")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -0.337161, 0.941447, 0, -0.941447, -0.337161, 0, 2.08989, 0)
[node name="Player" parent="." instance=ExtResource("3_5378m")]
transform = Transform3D(-1, 3.48787e-16, -8.74228e-08, 3.48787e-16, 1, -3.48787e-16, 8.74228e-08, -3.48787e-16, -1, 0, 4.89631, 0)
[node name="PyramidSmallMesh" parent="." instance=ExtResource("5_uf8hd")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -27, 0, 35)
[node name="PyramidSmolMesh" parent="." instance=ExtResource("6_klmt8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -25, 0, 38)
[node name="PyramidSmallMesh2" parent="." instance=ExtResource("5_uf8hd")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -29, 0, 44)