immersive-home/app/content/system/raycast/raycast.tscn

65 lines
2.7 KiB
Plaintext
Raw Permalink Normal View History

2024-05-23 01:36:49 +03:00
[gd_scene load_steps=10 format=3 uid="uid://dscp8x0ari57n"]
2023-11-22 02:44:07 +02:00
2024-05-10 14:16:17 +03:00
[ext_resource type="Texture2D" uid="uid://bl33klueufwja" path="res://assets/cursors/pointer.png" id="1_2f2iv"]
2023-11-22 02:44:07 +02:00
[ext_resource type="Script" path="res://content/system/raycast/raycast.gd" id="1_gp8nv"]
2024-05-10 14:16:17 +03:00
[ext_resource type="Texture2D" uid="uid://churthrr24yhw" path="res://assets/cursors/old.png" id="3_f5ibs"]
2024-03-17 19:04:20 +02:00
[ext_resource type="Shader" path="res://content/system/raycast/raycast.gdshader" id="3_lpfe7"]
[ext_resource type="Texture2D" uid="uid://cy5dna78q6tn6" path="res://assets/models/ray/ray.png" id="4_fe8o8"]
[ext_resource type="ArrayMesh" uid="uid://d3kriab522o2w" path="res://assets/models/ray/ray.obj" id="5_3o4gy"]
2024-05-23 01:36:49 +03:00
[ext_resource type="Material" uid="uid://bb4kgiocswfv7" path="res://assets/materials/grid.tres" id="7_tnbkv"]
2024-03-17 19:04:20 +02:00
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ov0gt"]
render_priority = 0
shader = ExtResource("3_lpfe7")
shader_parameter/albedo = Color(1, 1, 1, 1)
shader_parameter/texture_albedo = ExtResource("4_fe8o8")
2023-11-22 02:44:07 +02:00
2024-05-23 01:36:49 +03:00
[sub_resource type="PlaneMesh" id="PlaneMesh_cq16e"]
orientation = 2
2023-11-22 02:44:07 +02:00
[node name="Raycast" type="RayCast3D"]
2024-03-17 19:04:20 +02:00
transform = Transform3D(0.999999, -1.39624e-11, 0, 9.48108e-12, 0.999999, 0, 0, 4.54747e-13, 0.999998, 0, 0, 0)
2023-11-22 02:44:07 +02:00
target_position = Vector3(0, 0, -5)
2023-11-28 16:14:21 +02:00
collision_mask = 19
2024-03-17 19:04:20 +02:00
debug_shape_custom_color = Color(0, 0, 0, 0)
2023-11-22 02:44:07 +02:00
script = ExtResource("1_gp8nv")
[node name="Decal" type="Decal" parent="."]
transform = Transform3D(1, -0.000567106, -2.5179e-05, -2.5179e-05, 4.39886e-08, -1, 0.000567106, 1, 2.97068e-08, -0.000308663, -0.00229502, -2.46601)
size = Vector3(0.02, 4.91995, 0.02)
texture_albedo = ExtResource("1_2f2iv")
upper_fade = 0.000985425
lower_fade = 0.000919435
2023-11-26 14:48:27 +02:00
[node name="Cursor" type="Node3D" parent="."]
2024-05-10 14:16:17 +03:00
[node name="DefaultCursor" type="Sprite3D" parent="Cursor"]
2023-11-27 01:23:19 +02:00
transform = Transform3D(0.03, 2.71051e-20, 0, -5.42101e-20, 0.03, -2.03288e-21, -2.46521e-33, 2.5411e-21, 0.03, 0, 0, 0)
2024-05-10 14:16:17 +03:00
visible = false
2023-11-26 14:48:27 +02:00
pixel_size = 0.001
2024-05-10 14:16:17 +03:00
texture_filter = 0
2024-04-25 12:45:14 +03:00
render_priority = 90
2023-11-26 14:48:27 +02:00
texture = ExtResource("1_2f2iv")
2024-03-17 19:04:20 +02:00
2024-05-10 14:16:17 +03:00
[node name="RetroCursor" type="Sprite3D" parent="Cursor"]
transform = Transform3D(0.03, 0, 0, 0, 0.03, 0, 0, 0, 0.03, 0, 0, 0)
offset = Vector2(5.835, -9.175)
pixel_size = 0.03
texture_filter = 0
render_priority = 90
texture = ExtResource("3_f5ibs")
2024-03-17 19:04:20 +02:00
[node name="Ray" type="MeshInstance3D" parent="."]
transform = Transform3D(1, -1.39624e-11, -6.10317e-19, 0, -4.37114e-08, 1, -1.39624e-11, -1, -4.37114e-08, 0, 0, -0.0182334)
material_override = SubResource("ShaderMaterial_ov0gt")
mesh = ExtResource("5_3o4gy")
2024-05-23 01:36:49 +03:00
[node name="Grid" type="MeshInstance3D" parent="."]
2024-05-28 16:49:48 +03:00
visible = false
2024-05-23 01:36:49 +03:00
material_override = ExtResource("7_tnbkv")
mesh = SubResource("PlaneMesh_cq16e")
[node name="WallCollider" type="RayCast3D" parent="."]
target_position = Vector3(0, 0, -10)
collision_mask = 16