48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://clujaf3u776a3"]
|
|
|
|
[ext_resource type="Script" path="res://addons/godot-xr-tools/objects/viewport_2d_in_3d.gd" id="1"]
|
|
[ext_resource type="Script" 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_ufe4n"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fvml0"]
|
|
transparency = 1
|
|
cull_mode = 2
|
|
albedo_texture = SubResource("ViewportTexture_ufe4n")
|
|
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"]
|
|
script = ExtResource("1")
|
|
alpha_scissor_threshold = 0.25
|
|
unshaded = false
|
|
filter = true
|
|
|
|
[node name="Viewport" type="SubViewport" parent="."]
|
|
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="."]
|
|
mesh = SubResource("1")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_fvml0")
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
|
collision_layer = 5242881
|
|
collision_mask = 0
|
|
script = ExtResource("2")
|
|
viewport_size = Vector2(300, 200)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.01)
|
|
shape = SubResource("4")
|