immersive-home/main.tscn

95 lines
3.6 KiB
Plaintext
Raw Normal View History

2023-10-23 02:58:18 +03:00
[gd_scene load_steps=12 format=3 uid="uid://eecv28y6jxk4"]
2023-10-16 20:10:20 +03:00
2023-10-23 00:01:06 +03:00
[ext_resource type="PackedScene" uid="uid://clc5dre31iskm" path="res://addons/godot-xr-tools/xr/start_xr.tscn" id="1_i4c04"]
2023-10-23 02:58:18 +03:00
[ext_resource type="Script" path="res://src/raycast.gd" id="1_tsqxc"]
[ext_resource type="Script" path="res://src/model.gd" id="2_7f1x4"]
[ext_resource type="Script" path="res://light.gd" id="4_bm5yj"]
[sub_resource type="SphereShape3D" id="SphereShape3D_2igmd"]
radius = 0.1
[sub_resource type="SphereMesh" id="SphereMesh_eme7e"]
radius = 0.1
height = 0.2
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m58yb"]
ao_enabled = true
2023-10-23 00:01:06 +03:00
[sub_resource type="BoxMesh" id="BoxMesh_ir3co"]
2023-10-23 02:58:18 +03:00
material = SubResource("StandardMaterial3D_m58yb")
size = Vector3(0.01, 0.01, 0.01)
2023-10-23 00:01:06 +03:00
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_p6hri"]
2023-10-23 02:58:18 +03:00
sky_top_color = Color(0, 0, 0, 1)
sky_horizon_color = Color(0, 0, 0, 1)
sky_curve = 9.13367e-05
sky_cover_modulate = Color(0, 0, 0, 1)
ground_bottom_color = Color(0, 0, 0, 1)
ground_horizon_color = Color(0, 0, 0, 1)
2023-10-23 00:01:06 +03:00
use_debanding = false
[sub_resource type="Sky" id="Sky_vhymk"]
sky_material = SubResource("ProceduralSkyMaterial_p6hri")
[sub_resource type="Environment" id="Environment_7ghp0"]
2023-10-23 02:58:18 +03:00
background_mode = 2
background_color = Color(0.466667, 0.47451, 0.462745, 0)
2023-10-23 00:01:06 +03:00
sky = SubResource("Sky_vhymk")
2023-10-23 02:58:18 +03:00
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_sky_contribution = 0.72
2023-10-16 20:10:20 +03:00
[node name="Main" type="Node3D"]
2023-10-23 02:58:18 +03:00
[node name="Light" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.45064, 0, 0.20152)
script = ExtResource("4_bm5yj")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Light"]
shape = SubResource("SphereShape3D_2igmd")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Light"]
mesh = SubResource("SphereMesh_eme7e")
2023-10-16 20:10:20 +03:00
[node name="XROrigin3D" type="XROrigin3D" parent="."]
[node name="XRCamera3D" type="XRCamera3D" parent="XROrigin3D"]
2023-10-23 00:01:06 +03:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.798091, 0.311748)
2023-10-16 20:10:20 +03:00
2023-10-23 00:01:06 +03:00
[node name="XRControllerLeft" type="XRController3D" parent="XROrigin3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.469893, 0.597213, -0.251112)
2023-10-16 20:10:20 +03:00
tracker = &"left_hand"
pose = &"aim"
2023-10-23 00:01:06 +03:00
[node name="MeshInstance3D" type="MeshInstance3D" parent="XROrigin3D/XRControllerLeft"]
mesh = SubResource("BoxMesh_ir3co")
2023-10-16 20:10:20 +03:00
2023-10-23 02:58:18 +03:00
[node name="Model" type="Node3D" parent="XROrigin3D/XRControllerLeft" node_paths=PackedStringArray("light")]
script = ExtResource("2_7f1x4")
light = NodePath("../../../Light")
2023-10-23 00:01:06 +03:00
[node name="XRControllerRight" type="XRController3D" parent="XROrigin3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.488349, 0.559219, -0.2988)
2023-10-16 20:10:20 +03:00
tracker = &"right_hand"
pose = &"aim"
2023-10-23 00:01:06 +03:00
[node name="MeshInstance3D" type="MeshInstance3D" parent="XROrigin3D/XRControllerRight"]
mesh = SubResource("BoxMesh_ir3co")
2023-10-16 20:10:20 +03:00
2023-10-23 02:58:18 +03:00
[node name="Raycast" type="Node3D" parent="XROrigin3D/XRControllerRight" node_paths=PackedStringArray("ray")]
script = ExtResource("1_tsqxc")
ray = NodePath("RayCast3D")
[node name="RayCast3D" type="RayCast3D" parent="XROrigin3D/XRControllerRight/Raycast"]
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, 0, 0, 0)
target_position = Vector3(0, -5, 0)
2023-10-23 00:01:06 +03:00
[node name="StartXR" parent="." instance=ExtResource("1_i4c04")]
2023-10-16 20:10:20 +03:00
enable_passthrough = true
2023-10-23 00:01:06 +03:00
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_7ghp0")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
2023-10-23 02:58:18 +03:00
transform = Transform3D(0.834925, -0.386727, -0.39159, 0.550364, 0.586681, 0.594058, 0, -0.711511, 0.702675, 0, 7.21041, 2.06458)
shadow_enabled = true