51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
[gd_scene format=3 uid="uid://clujaf3u776a3"]
|
|
|
|
[ext_resource type="Script" uid="uid://eavk7267igp7" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.gd" id="1"]
|
|
[ext_resource type="Script" uid="uid://cpl5yiyf1ypft" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d_body.gd" id="2"]
|
|
|
|
[sub_resource type="QuadMesh" id="1"]
|
|
resource_local_to_scene = true
|
|
size = Vector2(3, 2)
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_gvc48"]
|
|
viewport_path = NodePath("Viewport")
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4gj7x"]
|
|
transparency = 1
|
|
cull_mode = 2
|
|
albedo_texture = SubResource("ViewportTexture_gvc48")
|
|
texture_filter = 1
|
|
|
|
[sub_resource type="BoxShape3D" id="4"]
|
|
resource_local_to_scene = true
|
|
size = Vector3(3, 2, 0.02)
|
|
|
|
[node name="Viewport2Din3D" type="Node3D" unique_id=1136024888]
|
|
script = ExtResource("1")
|
|
transparent = 1
|
|
alpha_scissor_threshold = 0.25
|
|
unshaded = false
|
|
filter = true
|
|
scene_properties_keys = PackedStringArray()
|
|
|
|
[node name="Viewport" type="SubViewport" parent="." unique_id=1205536037]
|
|
disable_3d = true
|
|
transparent_bg = true
|
|
gui_embed_subwindows = true
|
|
size = Vector2i(300, 200)
|
|
render_target_update_mode = 1
|
|
|
|
[node name="Screen" type="MeshInstance3D" parent="." unique_id=1799394652]
|
|
mesh = SubResource("1")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_4gj7x")
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=959647424]
|
|
collision_layer = 5242881
|
|
collision_mask = 0
|
|
script = ExtResource("2")
|
|
viewport_size = Vector2(300, 200)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=1695382741]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.01)
|
|
shape = SubResource("4")
|