added flat indoor test and skybox to 3d test

This commit is contained in:
2025-04-30 18:43:18 +02:00
parent 0fcc425ace
commit 16a65f7155
15 changed files with 265 additions and 5 deletions
+25 -5
View File
@@ -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)
+27
View File
@@ -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)