diff --git a/art/indoor/misfortune_perspective_test.png b/art/indoor/misfortune_perspective_test.png new file mode 100644 index 0000000..15a1b1f Binary files /dev/null and b/art/indoor/misfortune_perspective_test.png differ diff --git a/art/indoor/misfortune_perspective_test.png.import b/art/indoor/misfortune_perspective_test.png.import new file mode 100644 index 0000000..0e5aeab --- /dev/null +++ b/art/indoor/misfortune_perspective_test.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c02unlmw2y6vv" +path="res://.godot/imported/misfortune_perspective_test.png-474d43838a9ea0101d6cdff123a0516b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://art/indoor/misfortune_perspective_test.png" +dest_files=["res://.godot/imported/misfortune_perspective_test.png-474d43838a9ea0101d6cdff123a0516b.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/art/skyboxes/sky_24_2k.png b/art/skyboxes/sky_24_2k.png new file mode 100644 index 0000000..ac2d556 Binary files /dev/null and b/art/skyboxes/sky_24_2k.png differ diff --git a/art/skyboxes/sky_24_2k.png.import b/art/skyboxes/sky_24_2k.png.import new file mode 100644 index 0000000..f2b21db --- /dev/null +++ b/art/skyboxes/sky_24_2k.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b3uty8l1jdrjk" +path.s3tc="res://.godot/imported/sky_24_2k.png-6eebd1ef02e0e52a98645f3d1879ab9e.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://art/skyboxes/sky_24_2k.png" +dest_files=["res://.godot/imported/sky_24_2k.png-6eebd1ef02e0e52a98645f3d1879ab9e.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/art/skyboxes/sky_29_2k.png b/art/skyboxes/sky_29_2k.png new file mode 100644 index 0000000..d532513 Binary files /dev/null and b/art/skyboxes/sky_29_2k.png differ diff --git a/art/skyboxes/sky_29_2k.png.import b/art/skyboxes/sky_29_2k.png.import new file mode 100644 index 0000000..063d3c6 --- /dev/null +++ b/art/skyboxes/sky_29_2k.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d1gij124516fl" +path.s3tc="res://.godot/imported/sky_29_2k.png-a941c0e080f4b37a36968dc654dd2c14.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://art/skyboxes/sky_29_2k.png" +dest_files=["res://.godot/imported/sky_29_2k.png-a941c0e080f4b37a36968dc654dd2c14.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/art/skyboxes/sky_34_2k.png b/art/skyboxes/sky_34_2k.png new file mode 100644 index 0000000..8240e19 Binary files /dev/null and b/art/skyboxes/sky_34_2k.png differ diff --git a/art/skyboxes/sky_34_2k.png.import b/art/skyboxes/sky_34_2k.png.import new file mode 100644 index 0000000..96cf28e --- /dev/null +++ b/art/skyboxes/sky_34_2k.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d2osodaofb2ya" +path.s3tc="res://.godot/imported/sky_34_2k.png-9f6287d0381f17cc068eeb4166c83bd3.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://art/skyboxes/sky_34_2k.png" +dest_files=["res://.godot/imported/sky_34_2k.png-9f6287d0381f17cc068eeb4166c83bd3.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/art/skyboxes/sky_37_2k.png b/art/skyboxes/sky_37_2k.png new file mode 100644 index 0000000..82453a9 Binary files /dev/null and b/art/skyboxes/sky_37_2k.png differ diff --git a/art/skyboxes/sky_37_2k.png.import b/art/skyboxes/sky_37_2k.png.import new file mode 100644 index 0000000..5f97d09 --- /dev/null +++ b/art/skyboxes/sky_37_2k.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://df87h8he6c12t" +path.s3tc="res://.godot/imported/sky_37_2k.png-8ba5cf7cc018e8a0a90a73aefe633c16.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://art/skyboxes/sky_37_2k.png" +dest_files=["res://.godot/imported/sky_37_2k.png-8ba5cf7cc018e8a0a90a73aefe633c16.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/art/skyboxes/sky_41_2k.png b/art/skyboxes/sky_41_2k.png new file mode 100644 index 0000000..95423c0 Binary files /dev/null and b/art/skyboxes/sky_41_2k.png differ diff --git a/art/skyboxes/sky_41_2k.png.import b/art/skyboxes/sky_41_2k.png.import new file mode 100644 index 0000000..3d6fbf5 --- /dev/null +++ b/art/skyboxes/sky_41_2k.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d11xu6vq7jwdq" +path.s3tc="res://.godot/imported/sky_41_2k.png-ed5d885654e2b3558ec6ad4d08125f90.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://art/skyboxes/sky_41_2k.png" +dest_files=["res://.godot/imported/sky_41_2k.png-ed5d885654e2b3558ec6ad4d08125f90.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/resources/credits.txt b/resources/credits.txt new file mode 100644 index 0000000..4416838 --- /dev/null +++ b/resources/credits.txt @@ -0,0 +1,4 @@ +Credits: + +Skyboxes: +https://freestylized.com/all-skybox/ diff --git a/scenes/Babushka_scene_farm_vesna.tscn b/scenes/Babushka_scene_farm_vesna.tscn index f37673d..afd1761 100644 --- a/scenes/Babushka_scene_farm_vesna.tscn +++ b/scenes/Babushka_scene_farm_vesna.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=22 format=3 uid="uid://br7yq757cawts"] +[gd_scene load_steps=24 format=3 uid="uid://br7yq757cawts"] [ext_resource type="Material" uid="uid://p1mf3uc4k164" path="res://art/materials/Tilleable_ground.tres" id="1_6i8r8"] [ext_resource type="PackedScene" uid="uid://dbd1niu3tp8y5" path="res://prefabs/Player3D.tscn" id="1_b1ibi"] +[ext_resource type="Texture2D" uid="uid://d2osodaofb2ya" path="res://art/skyboxes/sky_34_2k.png" id="1_ww4l5"] [ext_resource type="PackedScene" uid="uid://biwd3jj65qrlh" path="res://prefabs/farm/base_field.tscn" id="2_72r8y"] [ext_resource type="PackedScene" uid="uid://ob04y3syvo0e" path="res://prefabs/interaction_area.tscn" id="4_r4sre"] [ext_resource type="PackedScene" uid="uid://cgjc4wurbgimy" path="res://prefabs/UI/Inventory/Inventory.tscn" id="5_obfp0"] @@ -14,12 +15,30 @@ [ext_resource type="PackedScene" uid="uid://cm5oekefe6ct3" path="res://prefabs/farm/fence_part_03.tscn" id="12_ww4l5"] [ext_resource type="Texture2D" uid="uid://c7f3t65jskd6v" path="res://art/mockups/house_prototype.png" id="13_nmncb"] -[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_nmncb"] -sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1) -ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1) +[sub_resource type="Shader" id="Shader_m0ieq"] +code = " +// NOTE: Shader automatically converted from Godot Engine 4.4.stable.mono's PanoramaSkyMaterial. + +shader_type sky; + +uniform sampler2D source_panorama : filter_linear, source_color, hint_default_black; +uniform float exposure : hint_range(0, 128) = 1.0; +uniform float speed = 0.002; + +void sky() { + vec2 dir = vec2(SKY_COORDS.x + TIME * speed, SKY_COORDS.y); + COLOR = texture(source_panorama, dir).rgb * exposure; +} +" + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_prdor"] +shader = SubResource("Shader_m0ieq") +shader_parameter/source_panorama = ExtResource("1_ww4l5") +shader_parameter/exposure = 1.0 +shader_parameter/speed = 0.002 [sub_resource type="Sky" id="Sky_ww4l5"] -sky_material = SubResource("ProceduralSkyMaterial_nmncb") +sky_material = SubResource("ShaderMaterial_prdor") [sub_resource type="Environment" id="Environment_m0ieq"] background_mode = 2 @@ -68,6 +87,7 @@ _fieldParent = NodePath("../FieldService") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.618408, 0.785857, 0, -0.785857, 0.618408, -0.802612, 0, 4.73262) +light_color = Color(0.838036, 0.913171, 1, 1) [node name="BaseField" parent="." instance=ExtResource("2_72r8y")] transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0.0574723, 0) diff --git a/scenes/IndoorTest2.tscn b/scenes/IndoorTest2.tscn new file mode 100644 index 0000000..96a3ee2 --- /dev/null +++ b/scenes/IndoorTest2.tscn @@ -0,0 +1,27 @@ +[gd_scene load_steps=4 format=3 uid="uid://bm21nqepnwaik"] + +[ext_resource type="Texture2D" uid="uid://c02unlmw2y6vv" path="res://art/indoor/misfortune_perspective_test.png" id="1_wvosl"] +[ext_resource type="PackedScene" uid="uid://c25udixd5m6l0" path="res://prefabs/Player2D.tscn" id="2_a2ood"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_a2ood"] +size = Vector2(1241.67, 409.333) + +[node name="IndoorTest" type="Node2D"] + +[node name="background" type="Sprite2D" parent="."] +scale = Vector2(3, 3) +texture = ExtResource("1_wvosl") +region_rect = Rect2(111, 292, 3323, 2160) + +[node name="StaticBody2D" type="StaticBody2D" parent="background"] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="background/StaticBody2D"] +position = Vector2(2.5, -129.667) +shape = SubResource("RectangleShape2D_a2ood") + +[node name="Player2d" parent="." instance=ExtResource("2_a2ood")] +position = Vector2(-3, 509) + +[node name="Camera2D" type="Camera2D" parent="."] +offset = Vector2(100, 0) +zoom = Vector2(0.325, 0.325)