diff --git a/test_world.tscn b/test_world.tscn index 1a1e25e..b6901b9 100644 --- a/test_world.tscn +++ b/test_world.tscn @@ -1,22 +1,9 @@ -[gd_scene load_steps=9 format=3 uid="uid://cs4drhmc1bql5"] +[gd_scene load_steps=15 format=3 uid="uid://cs4drhmc1bql5"] [ext_resource type="PackedScene" uid="uid://cc1m2a1obsyn4" path="res://addons/fpc/character.tscn" id="1_e18vq"] - -[sub_resource type="Gradient" id="Gradient_ur0vy"] -colors = PackedColorArray(0, 0.476245, 0.0193456, 1, 0.360494, 0.612721, 0.119744, 1) - -[sub_resource type="FastNoiseLite" id="FastNoiseLite_jd3pw"] -frequency = 0.005 - -[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_7akuf"] -width = 1024 -height = 1024 -in_3d_space = true -color_ramp = SubResource("Gradient_ur0vy") -noise = SubResource("FastNoiseLite_jd3pw") - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_67ysu"] -albedo_texture = SubResource("NoiseTexture2D_7akuf") +[ext_resource type="Texture2D" uid="uid://pe7a4weirj2g" path="res://textures/dark.png" id="2_08fdt"] +[ext_resource type="Texture2D" uid="uid://cxjxvqmf4boxq" path="res://textures/green.png" id="3_q4clv"] +[ext_resource type="Texture2D" uid="uid://dsv4jm4vydflb" path="res://textures/orange.png" id="4_1ns5t"] [sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_edcox"] ground_color = Color(0.160784, 0.815686, 0.905882, 1) @@ -30,15 +17,53 @@ sky = SubResource("Sky_2iust") tonemap_mode = 1 ssao_enabled = true +[sub_resource type="Gradient" id="Gradient_ur0vy"] +colors = PackedColorArray(0, 0.476245, 0.0193456, 1, 0.360494, 0.612721, 0.119744, 1) + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_jd3pw"] +frequency = 0.0027 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_7akuf"] +width = 1024 +height = 1024 +in_3d_space = true +seamless = true +color_ramp = SubResource("Gradient_ur0vy") +noise = SubResource("FastNoiseLite_jd3pw") + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_67ysu"] +albedo_texture = SubResource("NoiseTexture2D_7akuf") +uv1_scale = Vector3(0.1, 0.1, 0.1) +uv1_triplanar = true + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gomnb"] +albedo_texture = ExtResource("2_08fdt") +metallic = 0.81 +metallic_specular = 0.2 +roughness = 0.5 +uv1_triplanar = true +uv1_triplanar_sharpness = 0.000850145 + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_u0sbk"] +albedo_texture = ExtResource("3_q4clv") +metallic = 0.81 +metallic_specular = 0.2 +roughness = 0.5 +uv1_triplanar = true +uv1_triplanar_sharpness = 0.000850145 + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7j4uu"] +albedo_texture = ExtResource("4_1ns5t") +metallic = 0.81 +metallic_specular = 0.2 +roughness = 0.5 +uv1_triplanar = true +uv1_triplanar_sharpness = 0.000850145 + [node name="test_world" type="Node3D"] [node name="Character" parent="." instance=ExtResource("1_e18vq")] - -[node name="CSGBox3D" type="CSGBox3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0) -use_collision = true -size = Vector3(10, 1, 10) -material = SubResource("StandardMaterial3D_67ysu") +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_20rw3") @@ -47,3 +72,35 @@ environment = SubResource("Environment_20rw3") transform = Transform3D(0.87959, -0.436605, 0.188936, 0, 0.397148, 0.917755, -0.475732, -0.807248, 0.349328, 0, 0, 0) light_energy = 2.0 shadow_enabled = true + +[node name="terrain" type="Node3D" parent="."] + +[node name="CSGBox3D" type="CSGBox3D" parent="terrain"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -0.5, 10) +use_collision = true +size = Vector3(30, 1, 30) +material = SubResource("StandardMaterial3D_67ysu") + +[node name="CSGBox3D2" type="CSGBox3D" parent="terrain"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -10) +use_collision = true +size = Vector3(10, 1, 10) +material = SubResource("StandardMaterial3D_gomnb") + +[node name="CSGBox3D3" type="CSGBox3D" parent="terrain"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 1.8, -13) +use_collision = true +size = Vector3(4, 0.5, 4) +material = SubResource("StandardMaterial3D_gomnb") + +[node name="CSGBox3D4" type="CSGBox3D" parent="terrain"] +transform = Transform3D(0.939693, 0.34202, 0, -0.34202, 0.939693, 0, 0, 0, 1, -9.5, 1.2, -10) +use_collision = true +size = Vector3(10, 1, 10) +material = SubResource("StandardMaterial3D_u0sbk") + +[node name="CSGBox3D5" type="CSGBox3D" parent="terrain"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.5, 3, -15.5) +use_collision = true +size = Vector3(19, 8, 1) +material = SubResource("StandardMaterial3D_7j4uu") diff --git a/textures/dark.png b/textures/dark.png new file mode 100644 index 0000000..69be211 Binary files /dev/null and b/textures/dark.png differ diff --git a/textures/dark.png.import b/textures/dark.png.import new file mode 100644 index 0000000..2a82a3f --- /dev/null +++ b/textures/dark.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://pe7a4weirj2g" +path.s3tc="res://.godot/imported/dark.png-6d46f668c80e231a58e570df85aad257.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://textures/dark.png" +dest_files=["res://.godot/imported/dark.png-6d46f668c80e231a58e570df85aad257.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=0 diff --git a/textures/green.png b/textures/green.png new file mode 100644 index 0000000..7bc7cf8 Binary files /dev/null and b/textures/green.png differ diff --git a/textures/green.png.import b/textures/green.png.import new file mode 100644 index 0000000..7c7e044 --- /dev/null +++ b/textures/green.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cxjxvqmf4boxq" +path.s3tc="res://.godot/imported/green.png-b4f8ddc6b00d4e627f0e027e2e1193bf.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://textures/green.png" +dest_files=["res://.godot/imported/green.png-b4f8ddc6b00d4e627f0e027e2e1193bf.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=0 diff --git a/textures/orange.png b/textures/orange.png new file mode 100644 index 0000000..dec5b59 Binary files /dev/null and b/textures/orange.png differ diff --git a/textures/orange.png.import b/textures/orange.png.import new file mode 100644 index 0000000..311f8ac --- /dev/null +++ b/textures/orange.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dsv4jm4vydflb" +path.s3tc="res://.godot/imported/orange.png-6785d3f8216fd22318e8ea839823715b.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://textures/orange.png" +dest_files=["res://.godot/imported/orange.png-6785d3f8216fd22318e8ea839823715b.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=0 diff --git a/textures/purple.png b/textures/purple.png new file mode 100644 index 0000000..48a51c1 Binary files /dev/null and b/textures/purple.png differ diff --git a/textures/purple.png.import b/textures/purple.png.import new file mode 100644 index 0000000..9dc0969 --- /dev/null +++ b/textures/purple.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cl4kewig3pk7s" +path="res://.godot/imported/purple.png-23488e84f4f0a47488be2c78494f2155.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/purple.png" +dest_files=["res://.godot/imported/purple.png-23488e84f4f0a47488be2c78494f2155.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/red.png b/textures/red.png new file mode 100644 index 0000000..bf1cb17 Binary files /dev/null and b/textures/red.png differ diff --git a/textures/red.png.import b/textures/red.png.import new file mode 100644 index 0000000..c8c15aa --- /dev/null +++ b/textures/red.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d1h161t0v6hau" +path="res://.godot/imported/red.png-3cad0ca19141406d60f5fd2311159a86.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/red.png" +dest_files=["res://.godot/imported/red.png-3cad0ca19141406d60f5fd2311159a86.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1