sfrem/prototype-floor (#8)
This PR creates the floor and adds a couple of things along with it. Note that this floor is not exactly "playable". You can walk around and you're inside of a big empty space with a glass at the top, but there's nothing to do inside of it, and the lighting could use a lot of work. Getting this in now so that more work can be done to it. View from inside the tower: <img width="1475" alt="image.png" src="attachments/56ab5066-2d8e-4137-93ee-9aebfcfe6ada"> Closes #3 Reviewed-on: #8 Reviewed-by: indigoso <indigosowhat@gmail.com> Co-authored-by: godsfryingpan <sfrembling@gmail.com> Co-committed-by: godsfryingpan <sfrembling@gmail.com>
This commit was merged in pull request #8.
This commit is contained in:
7
Testing/Materials/prototype_floor.tres
Normal file
7
Testing/Materials/prototype_floor.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="StandardMaterial3D" format=3 uid="uid://014h3kro2gsv"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://domgof2sjx7qt" path="res://Assets/External/kenney_prototype-textures/texture_08.svg" id="1_0wcts"]
|
||||
|
||||
[resource]
|
||||
albedo_texture = ExtResource("1_0wcts")
|
||||
uv1_scale = Vector3(8, 8, 8)
|
||||
84
Testing/floor_prototype.tscn
Normal file
84
Testing/floor_prototype.tscn
Normal file
@@ -0,0 +1,84 @@
|
||||
[gd_scene format=3 uid="uid://cy0y28j47h3w"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://diipi3w18rk4v" path="res://Player/player_controller.tscn" id="1_fau6w"]
|
||||
[ext_resource type="Texture2D" uid="uid://fnlm5dao21d8" path="res://Assets/skybox-panorama.png" id="1_gfyfu"]
|
||||
[ext_resource type="Material" uid="uid://014h3kro2gsv" path="res://Testing/Materials/prototype_floor.tres" id="2_7f328"]
|
||||
|
||||
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_7f328"]
|
||||
panorama = ExtResource("1_gfyfu")
|
||||
filter = false
|
||||
|
||||
[sub_resource type="Sky" id="Sky_gfyfu"]
|
||||
sky_material = SubResource("PanoramaSkyMaterial_7f328")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_7f328"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_gfyfu")
|
||||
tonemap_mode = 2
|
||||
ssao_enabled = true
|
||||
sdfgi_enabled = true
|
||||
glow_enabled = true
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7f328"]
|
||||
transparency = 1
|
||||
albedo_color = Color(1, 1, 1, 0.39215687)
|
||||
roughness = 0.1
|
||||
refraction_enabled = true
|
||||
|
||||
[node name="FloorPrototype" type="Node" unique_id=1720046870]
|
||||
|
||||
[node name="Sun" type="DirectionalLight3D" parent="." unique_id=315302175]
|
||||
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=2146588525]
|
||||
environment = SubResource("Environment_7f328")
|
||||
|
||||
[node name="WorldGeometry" type="Node" parent="." unique_id=1261921789]
|
||||
|
||||
[node name="Floor" type="Node" parent="WorldGeometry" unique_id=693029045]
|
||||
|
||||
[node name="Floor" type="CSGBox3D" parent="WorldGeometry/Floor" unique_id=2080275060]
|
||||
use_collision = true
|
||||
collision_layer = 2
|
||||
collision_mask = 3
|
||||
size = Vector3(100, 0.25, 100)
|
||||
material = ExtResource("2_7f328")
|
||||
|
||||
[node name="TowerGeometry" type="Node" parent="WorldGeometry" unique_id=1363002484]
|
||||
|
||||
[node name="WallOne" type="CSGBox3D" parent="WorldGeometry/TowerGeometry" unique_id=175577734]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 30.125, 5.2575006)
|
||||
use_collision = true
|
||||
collision_layer = 2
|
||||
size = Vector3(30, 60, 1)
|
||||
material = ExtResource("2_7f328")
|
||||
|
||||
[node name="WallTwo" type="CSGBox3D" parent="WorldGeometry/TowerGeometry" unique_id=334111110]
|
||||
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 14.443025, 30.125, -10.138264)
|
||||
use_collision = true
|
||||
collision_layer = 2
|
||||
size = Vector3(30, 60, 1)
|
||||
material = ExtResource("2_7f328")
|
||||
|
||||
[node name="WallThree" type="CSGBox3D" parent="WorldGeometry/TowerGeometry" unique_id=343370712]
|
||||
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, -0.015110016, 30.125, -24.639809)
|
||||
use_collision = true
|
||||
collision_layer = 2
|
||||
size = Vector3(30, 60, 1)
|
||||
material = ExtResource("2_7f328")
|
||||
|
||||
[node name="WallFour" type="CSGBox3D" parent="WorldGeometry/TowerGeometry" unique_id=5253357]
|
||||
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -14.458136, 30.125, -9.244044)
|
||||
use_collision = true
|
||||
collision_layer = 2
|
||||
size = Vector3(30, 60, 1)
|
||||
material = ExtResource("2_7f328")
|
||||
|
||||
[node name="GlassCeiling" type="CSGBox3D" parent="WorldGeometry/TowerGeometry" unique_id=525059148]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 59.14317, -9.601255)
|
||||
size = Vector3(28, 1, 30)
|
||||
material = SubResource("StandardMaterial3D_7f328")
|
||||
|
||||
[node name="PlayerController" parent="." unique_id=1462541278 instance=ExtResource("1_fau6w")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.125, 0)
|
||||
Reference in New Issue
Block a user