-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move our staging logic into the plugin so it becomes reusable
- Loading branch information
1 parent
6a9390f
commit 6b191f6
Showing
8 changed files
with
133 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[gd_scene load_steps=8 format=2] | ||
|
||
[ext_resource path="res://addons/godot-xr-tools/staging/staging.gd" type="Script" id=2] | ||
[ext_resource path="res://addons/godot-xr-tools/staging/loading_screen/loading_screen.tscn" type="PackedScene" id=3] | ||
[ext_resource path="res://addons/godot-xr-tools/staging/loading_screen/fade.gdshader" type="Shader" id=4] | ||
|
||
[sub_resource type="QuadMesh" id=4] | ||
custom_aabb = AABB( -5000, -5000, -5000, 10000, 10000, 10000 ) | ||
size = Vector2( 2, 2 ) | ||
|
||
[sub_resource type="ShaderMaterial" id=3] | ||
shader = ExtResource( 4 ) | ||
shader_param/alpha = 0.0 | ||
|
||
[sub_resource type="ProceduralSky" id=1] | ||
|
||
[sub_resource type="Environment" id=2] | ||
background_mode = 1 | ||
background_sky = SubResource( 1 ) | ||
|
||
[node name="Staging" type="Spatial"] | ||
script = ExtResource( 2 ) | ||
|
||
[node name="Fade" type="MeshInstance" parent="."] | ||
mesh = SubResource( 4 ) | ||
material/0 = SubResource( 3 ) | ||
|
||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."] | ||
environment = SubResource( 2 ) | ||
|
||
[node name="LoadingScreen" parent="." instance=ExtResource( 3 )] | ||
splash_screen = null | ||
progress = 0.0 | ||
|
||
[node name="Scene" type="Spatial" parent="."] | ||
|
||
[node name="Tween" type="Tween" parent="."] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,21 @@ | ||
[gd_scene load_steps=10 format=2] | ||
[gd_scene load_steps=5 format=2] | ||
|
||
[ext_resource path="res://addons/godot-openxr/scenes/first_person_controller_vr.tscn" type="PackedScene" id=1] | ||
[ext_resource path="res://staging.gd" type="Script" id=2] | ||
[ext_resource path="res://loading_screen/loading_screen.tscn" type="PackedScene" id=3] | ||
[ext_resource path="res://loading_screen/fade.gdshader" type="Shader" id=4] | ||
[ext_resource path="res://addons/godot-xr-tools/staging/staging.tscn" type="PackedScene" id=1] | ||
[ext_resource path="res://addons/godot-openxr/scenes/first_person_controller_vr.tscn" type="PackedScene" id=2] | ||
[ext_resource path="res://assets/godot/splash.png" type="Texture" id=3] | ||
[ext_resource path="res://addons/godot-xr-tools/misc/vr_common_shader_cache.tscn" type="PackedScene" id=9] | ||
|
||
[sub_resource type="QuadMesh" id=4] | ||
custom_aabb = AABB( -5000, -5000, -5000, 10000, 10000, 10000 ) | ||
size = Vector2( 2, 2 ) | ||
[node name="Staging" instance=ExtResource( 1 )] | ||
main_scene = "res://scenes/main_menu/main_menu_level.tscn" | ||
|
||
[sub_resource type="ShaderMaterial" id=3] | ||
shader = ExtResource( 4 ) | ||
shader_param/alpha = 0.0 | ||
[node name="LoadingScreen" parent="." index="2"] | ||
splash_screen = ExtResource( 3 ) | ||
|
||
[sub_resource type="ProceduralSky" id=1] | ||
|
||
[sub_resource type="Environment" id=2] | ||
background_mode = 1 | ||
background_sky = SubResource( 1 ) | ||
|
||
[node name="Staging" type="Spatial"] | ||
script = ExtResource( 2 ) | ||
|
||
[node name="Fade" type="MeshInstance" parent="."] | ||
mesh = SubResource( 4 ) | ||
material/0 = SubResource( 3 ) | ||
|
||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."] | ||
environment = SubResource( 2 ) | ||
|
||
[node name="FPController" parent="." instance=ExtResource( 1 )] | ||
[node name="FPController" parent="." index="5" instance=ExtResource( 2 )] | ||
|
||
[node name="ARVRCamera" parent="FPController" index="1"] | ||
far = 1000.0 | ||
|
||
[node name="vr_common_shader_cache" parent="FPController/ARVRCamera" index="0" instance=ExtResource( 9 )] | ||
|
||
[node name="LeftHandController" parent="FPController" index="2"] | ||
hide_for_no_tracking_confidence = true | ||
|
||
[node name="RightHandController" parent="FPController" index="3"] | ||
hide_for_no_tracking_confidence = true | ||
|
||
[node name="LoadingScreen" parent="." instance=ExtResource( 3 )] | ||
camera = NodePath("../FPController/ARVRCamera") | ||
progress = 0.0 | ||
|
||
[node name="Scene" type="Spatial" parent="."] | ||
|
||
[node name="Tween" type="Tween" parent="."] | ||
[node name="VRCommonShaderCache" parent="FPController/ARVRCamera" index="0" instance=ExtResource( 9 )] | ||
|
||
[editable path="FPController"] |