Better hallway

This commit is contained in:
Rob Kelly 2025-03-08 18:58:15 -07:00
parent a64add6f68
commit 99ec33ed3c
82 changed files with 171 additions and 832 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +0,0 @@
[gd_resource type="StandardMaterial3D" load_steps=5 format=3 uid="uid://bkwfat6ltd7a7"]
[ext_resource type="Texture2D" uid="uid://ddjth5slpjrcd" path="res://assets/level/ceiling/ceiling_1_C.png" id="1_6xwl4"]
[ext_resource type="Texture2D" uid="uid://bs1fx1h0tddde" path="res://assets/level/ceiling/ceiling_1_M.png" id="2_ufahw"]
[ext_resource type="Texture2D" uid="uid://bmwmajwul60ti" path="res://assets/level/ceiling/ceiling_1_N.png" id="3_lgwht"]
[ext_resource type="Texture2D" uid="uid://8hav47a84uk" path="res://assets/level/ceiling/ceiling_1_R.png" id="4_ua8nl"]
[resource]
albedo_texture = ExtResource("1_6xwl4")
metallic = 1.0
metallic_texture = ExtResource("2_ufahw")
roughness_texture = ExtResource("4_ua8nl")
normal_enabled = true
normal_texture = ExtResource("3_lgwht")
texture_filter = 4

Binary file not shown.

View File

@ -1,15 +0,0 @@
[gd_resource type="StandardMaterial3D" load_steps=5 format=3 uid="uid://cxudbowc3a5hy"]
[ext_resource type="Texture2D" uid="uid://0pya3or7iijm" path="res://assets/level/ceiling/ceiling_2_C.png" id="1_a4ot2"]
[ext_resource type="Texture2D" uid="uid://ikj0y0eguv4v" path="res://assets/level/ceiling/ceiling_2_M.png" id="2_uvugs"]
[ext_resource type="Texture2D" uid="uid://ee1hbwx0apn2" path="res://assets/level/ceiling/ceiling_2_N.png" id="3_ay65r"]
[ext_resource type="Texture2D" uid="uid://13a0iuldch08" path="res://assets/level/ceiling/ceiling_2_R.png" id="4_60sbj"]
[resource]
albedo_texture = ExtResource("1_a4ot2")
metallic = 1.0
metallic_texture = ExtResource("2_uvugs")
roughness_texture = ExtResource("4_60sbj")
normal_enabled = true
normal_texture = ExtResource("3_ay65r")
texture_filter = 4

Binary file not shown.

View File

@ -1,15 +0,0 @@
[gd_resource type="StandardMaterial3D" load_steps=5 format=3 uid="uid://cdsodbp7rbvip"]
[ext_resource type="Texture2D" uid="uid://c0a6flcoixsr2" path="res://assets/level/floor/floor_1_C.png" id="1_ojqhw"]
[ext_resource type="Texture2D" uid="uid://dxuxhlycaamcy" path="res://assets/level/floor/floor_1_M.png" id="2_510ks"]
[ext_resource type="Texture2D" uid="uid://bgc8oqsnimb8i" path="res://assets/level/floor/floor_1_N.png" id="3_hn748"]
[ext_resource type="Texture2D" uid="uid://23uupxc78b8n" path="res://assets/level/floor/floor_1_R.png" id="4_maf82"]
[resource]
albedo_texture = ExtResource("1_ojqhw")
metallic = 1.0
metallic_texture = ExtResource("2_510ks")
roughness_texture = ExtResource("4_maf82")
normal_enabled = true
normal_texture = ExtResource("3_hn748")
texture_filter = 4

Binary file not shown.

View File

@ -1,15 +0,0 @@
[gd_resource type="StandardMaterial3D" load_steps=5 format=3 uid="uid://phmrg5c5ls4i"]
[ext_resource type="Texture2D" uid="uid://ddxs8ktw6xxnp" path="res://assets/level/floor/floor_2_C.png" id="1_dfdp7"]
[ext_resource type="Texture2D" uid="uid://cxbw8ey4o4bey" path="res://assets/level/floor/floor_2_M.png" id="2_qgw8x"]
[ext_resource type="Texture2D" uid="uid://crsiwxpj7d4t5" path="res://assets/level/floor/floor_2_N.png" id="3_f6uky"]
[ext_resource type="Texture2D" uid="uid://43ty70xfua4i" path="res://assets/level/floor/floor_2_R.png" id="4_0wfia"]
[resource]
albedo_texture = ExtResource("1_dfdp7")
metallic = 1.0
metallic_texture = ExtResource("2_qgw8x")
roughness_texture = ExtResource("4_0wfia")
normal_enabled = true
normal_texture = ExtResource("3_f6uky")
texture_filter = 4

View File

@ -0,0 +1,2 @@
# Blender 4.3.2 MTL File: 'hallway.blend'
# www.blender.org

View File

@ -2,36 +2,30 @@
# www.blender.org
mtllib hallway.mtl
o Cube
v -2.000000 -2.000000 2.000000
v -2.000000 2.000000 2.000000
v -2.000000 -2.000000 -2.000000
v -2.000000 2.000000 -2.000000
v 2.000000 -2.000000 2.000000
v 2.000000 2.000000 2.000000
v 2.000000 -2.000000 -2.000000
v 2.000000 2.000000 -2.000000
vn -0.0000 -0.0000 1.0000
vn -0.0000 -0.0000 -1.0000
v -2.000000 0.000000 8.000000
v -2.000000 4.000000 8.000000
v -2.000000 0.000000 -8.000000
v -2.000000 4.000000 -8.000000
v 2.000000 0.000000 8.000000
v 2.000000 4.000000 8.000000
v 2.000000 0.000000 -8.000000
v 2.000000 4.000000 -8.000000
vn 1.0000 -0.0000 -0.0000
vn -1.0000 -0.0000 -0.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vt 0.500000 0.000000
vt 0.500000 0.500000
vt 0.000000 0.500000
vt 0.000000 0.000000
vt 0.500000 0.500000
vt 0.500000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.500000
vt 1.000000 0.500000
vt 0.500000 0.500000
vt 0.500000 0.000000
vt 1.000000 0.000000
vt 0.000000 0.500000
vt 0.000000 0.250000
vt 1.000000 0.250000
vt 0.000000 0.750000
vt 1.000000 0.750000
vt 1.000000 1.000000
vt 0.500000 1.000000
vt 0.500000 0.500000
vt 1.000000 0.500000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
s 0
f 3/1/1 7/2/1 8/3/1 4/4/1
f 5/5/2 1/6/2 2/7/2 6/8/2
f 3/9/3 1/10/3 5/11/3 7/12/3
f 8/13/4 6/14/4 2/15/4 4/16/4
f 1/1/1 3/2/1 4/3/1 2/4/1
f 7/5/2 5/6/2 6/7/2 8/8/2
f 3/2/3 1/1/3 5/6/3 7/5/3
f 8/9/4 6/10/4 2/4/4 4/3/4

View File

@ -3,7 +3,7 @@
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://bj6v5kgn4of2t"
uid="uid://plyi1ewg6iud"
path="res://.godot/imported/hallway.obj-c2558675b5331fb5d31769915011b0c9.mesh"
[deps]

BIN
assets/level/hallway/hallway_1_C.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://cj5em70wq1l6f"
uid="uid://bniqwnr66mvwa"
path="res://.godot/imported/hallway_1_C.png-9a126edbc39655070332e0af1a5ee780.ctex"
metadata={
"vram_texture": false

BIN
assets/level/hallway/hallway_1_E.png (Stored with Git LFS)

Binary file not shown.

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bi87m5noufg5h"
path="res://.godot/imported/hallway_1_E.png-6ecbafa7ad140eb5c3224e031759ac7c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/level/hallway/hallway_1_E.png"
dest_files=["res://.godot/imported/hallway_1_E.png-6ecbafa7ad140eb5c3224e031759ac7c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
assets/level/hallway/hallway_1_M.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c6ublhoexsuk"
uid="uid://ct2hoo0g0q6im"
path="res://.godot/imported/hallway_1_M.png-b3c5e22318ae1f3d03aaa8c1818762f7.ctex"
metadata={
"vram_texture": false

BIN
assets/level/hallway/hallway_1_N.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dtp6ctfi5l4v8"
uid="uid://db8cbo7abqvku"
path="res://.godot/imported/hallway_1_N.png-51db985672dd9b41c5fc36f4a085de59.ctex"
metadata={
"vram_texture": false

BIN
assets/level/hallway/hallway_1_R.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://5ua6bne0btou"
uid="uid://c1hiafyeu4fyj"
path="res://.godot/imported/hallway_1_R.png-9be1c4defb83d9d71353c85d69b7912b.ctex"
metadata={
"vram_texture": false

BIN
assets/level/hallway/hallway_2_C.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c3yo0fiux7uvl"
uid="uid://bedeo3iu8y8uu"
path="res://.godot/imported/hallway_2_C.png-368e035781dbfc292f80210e8377e1f9.ctex"
metadata={
"vram_texture": false
@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
@ -31,4 +31,4 @@ process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
detect_3d/compress_to=1

BIN
assets/level/hallway/hallway_2_E.png (Stored with Git LFS)

Binary file not shown.

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://blicao0n4875s"
path="res://.godot/imported/hallway_2_E.png-d7d6ba060d0d323809edfb662bdb2b4a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/level/hallway/hallway_2_E.png"
dest_files=["res://.godot/imported/hallway_2_E.png-d7d6ba060d0d323809edfb662bdb2b4a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
assets/level/hallway/hallway_2_M.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://crge5t3vivfhn"
uid="uid://nyomo122xjor"
path="res://.godot/imported/hallway_2_M.png-f213557d859a0fe7aab8242b25a4a2c0.ctex"
metadata={
"vram_texture": false
@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
@ -31,4 +31,4 @@ process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
detect_3d/compress_to=1

BIN
assets/level/hallway/hallway_2_N.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://d3eaofj7ntddk"
uid="uid://b8g8a2llqyl1k"
path="res://.godot/imported/hallway_2_N.png-6d22130ff0aeb6510ae322aebc31a58e.ctex"
metadata={
"vram_texture": false
@ -19,16 +19,16 @@ compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://assets/level/hallway/hallway_2_N.png"
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
detect_3d/compress_to=1

BIN
assets/level/hallway/hallway_2_R.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dxy4wicwjb38a"
uid="uid://dxfpaks61d1nl"
path="res://.godot/imported/hallway_2_R.png-e22266e6db52a2c329569fdae3b64571.ctex"
metadata={
"vram_texture": false
@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
@ -31,4 +31,4 @@ process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
detect_3d/compress_to=1

BIN
assets/level/hallway/hallway_3_C.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c60foyohyjlj8"
uid="uid://bs48peduua74x"
path="res://.godot/imported/hallway_3_C.png-9b45a5b023d4947b4c559574fc3e621c.ctex"
metadata={
"vram_texture": false
@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
@ -31,4 +31,4 @@ process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
detect_3d/compress_to=1

BIN
assets/level/hallway/hallway_3_E.png (Stored with Git LFS)

Binary file not shown.

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cjdkxbs8uwkh6"
path="res://.godot/imported/hallway_3_E.png-f2cf0e0a896e85dd3fdd9f5077a7e45a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/level/hallway/hallway_3_E.png"
dest_files=["res://.godot/imported/hallway_3_E.png-f2cf0e0a896e85dd3fdd9f5077a7e45a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
assets/level/hallway/hallway_3_M.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dht2my8tw3hl7"
uid="uid://db56q82xtg4fo"
path="res://.godot/imported/hallway_3_M.png-6d432a7e82e31420f6671047ebc348f7.ctex"
metadata={
"vram_texture": false
@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
@ -31,4 +31,4 @@ process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
detect_3d/compress_to=1

BIN
assets/level/hallway/hallway_3_N.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://b0qjhayccearq"
uid="uid://bxgth5y22ojgo"
path="res://.godot/imported/hallway_3_N.png-3a3b90c817ff23ffb14b76803b3c61fc.ctex"
metadata={
"vram_texture": false
@ -19,16 +19,16 @@ compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://assets/level/hallway/hallway_3_N.png"
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
detect_3d/compress_to=1

BIN
assets/level/hallway/hallway_3_R.png (Stored with Git LFS)

Binary file not shown.

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://ccm4iloi5vyld"
uid="uid://cb7wscyrqxde7"
path="res://.godot/imported/hallway_3_R.png-e7b238f537dbeb1347813ad41e0203bb.ctex"
metadata={
"vram_texture": false
@ -21,7 +21,7 @@ compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
@ -31,4 +31,4 @@ process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
detect_3d/compress_to=1

Binary file not shown.

View File

@ -1,15 +0,0 @@
[gd_resource type="StandardMaterial3D" load_steps=5 format=3 uid="uid://coy3y2u3ujn3u"]
[ext_resource type="Texture2D" uid="uid://bn4nrclcovuej" path="res://assets/level/wall/wall_1_C.png" id="1_dh271"]
[ext_resource type="Texture2D" uid="uid://da3nqwmiwbu8s" path="res://assets/level/wall/wall_1_M.png" id="2_6cs5k"]
[ext_resource type="Texture2D" uid="uid://bujelwt4b5d0s" path="res://assets/level/wall/wall_1_N.png" id="3_ktesd"]
[ext_resource type="Texture2D" uid="uid://dwi2opqp2s8ak" path="res://assets/level/wall/wall_1_R.png" id="4_hwehc"]
[resource]
albedo_texture = ExtResource("1_dh271")
metallic = 1.0
metallic_texture = ExtResource("2_6cs5k")
roughness_texture = ExtResource("4_hwehc")
normal_enabled = true
normal_texture = ExtResource("3_ktesd")
texture_filter = 4

Binary file not shown.

View File

@ -1,15 +0,0 @@
[gd_resource type="StandardMaterial3D" load_steps=5 format=3 uid="uid://q1b701b13co6"]
[ext_resource type="Texture2D" uid="uid://m2qxenym1otw" path="res://assets/level/wall/wall_2_C.png" id="1_5vyxs"]
[ext_resource type="Texture2D" uid="uid://begn6qloo0m1q" path="res://assets/level/wall/wall_2_M.png" id="2_nlwc6"]
[ext_resource type="Texture2D" uid="uid://cpdrvdu3qt62t" path="res://assets/level/wall/wall_2_N.png" id="3_3eofc"]
[ext_resource type="Texture2D" uid="uid://ba5vvrx730go8" path="res://assets/level/wall/wall_2_R.png" id="4_nkqqf"]
[resource]
albedo_texture = ExtResource("1_5vyxs")
metallic = 1.0
metallic_texture = ExtResource("2_nlwc6")
roughness_texture = ExtResource("4_nkqqf")
normal_enabled = true
normal_texture = ExtResource("3_3eofc")
texture_filter = 4

Binary file not shown.

View File

@ -1,15 +0,0 @@
[gd_resource type="StandardMaterial3D" load_steps=5 format=3 uid="uid://b1gi4b3ny2q1l"]
[ext_resource type="Texture2D" uid="uid://1mr7tplfxcrc" path="res://assets/level/wall/wall_3_C.png" id="1_a6sy6"]
[ext_resource type="Texture2D" uid="uid://cwqr6plpp3aov" path="res://assets/level/wall/wall_3_M.png" id="2_ics1d"]
[ext_resource type="Texture2D" uid="uid://qw6yjgadiv5f" path="res://assets/level/wall/wall_3_N.png" id="3_2w6cs"]
[ext_resource type="Texture2D" uid="uid://dqkarguq5m5hn" path="res://assets/level/wall/wall_3_R.png" id="4_skw4q"]
[resource]
albedo_texture = ExtResource("1_a6sy6")
metallic = 1.0
metallic_texture = ExtResource("2_ics1d")
roughness_texture = ExtResource("4_skw4q")
normal_enabled = true
normal_texture = ExtResource("3_2w6cs")
texture_filter = 4

View File

@ -3,10 +3,10 @@
[ext_resource type="Shader" uid="uid://ckxc0ngd37rtk" path="res://src/shaders/gunk.gdshader" id="1_euy6e"]
[ext_resource type="FastNoiseLite" uid="uid://cnlvdtx68giv6" path="res://assets/materials/gunk_noise.tres" id="2_u4cba"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_ow0bp"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_hrvvi"]
load_path = "res://.godot/imported/debug_mask.png-fd2bc783338ed9439fe81a4eef9d86da.s3tc.ctex"
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_d70or"]
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_2roq2"]
width = 256
height = 256
depth = 32
@ -14,7 +14,7 @@ seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("2_u4cba")
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_0ksu8"]
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_fk1xc"]
width = 256
height = 256
depth = 32
@ -37,6 +37,6 @@ shader_parameter/emission_strength = 0.02
shader_parameter/uv_scale = Vector2(8, 8)
shader_parameter/time_scale = 0.2
shader_parameter/edge_bleed = 0.25
shader_parameter/gunk_mask = SubResource("CompressedTexture2D_ow0bp")
shader_parameter/gunk_noise = SubResource("NoiseTexture3D_d70or")
shader_parameter/gunk_normal_map = SubResource("NoiseTexture3D_0ksu8")
shader_parameter/gunk_mask = SubResource("CompressedTexture2D_hrvvi")
shader_parameter/gunk_noise = SubResource("NoiseTexture3D_2roq2")
shader_parameter/gunk_normal_map = SubResource("NoiseTexture3D_fk1xc")

View File

@ -1,13 +1,13 @@
[gd_scene load_steps=27 format=3 uid="uid://ef0nvq0ikdjg"]
[gd_scene load_steps=14 format=3 uid="uid://ef0nvq0ikdjg"]
[ext_resource type="PackedScene" uid="uid://bwe2jdmvinhqd" path="res://src/player/player.tscn" id="1_kfkc5"]
[ext_resource type="Material" uid="uid://cdsodbp7rbvip" path="res://assets/level/floor/floor_1.tres" id="2_eqm4j"]
[ext_resource type="Material" uid="uid://phmrg5c5ls4i" path="res://assets/level/floor/floor_2.tres" id="3_yqrx7"]
[ext_resource type="Material" uid="uid://coy3y2u3ujn3u" path="res://assets/level/wall/wall_1.tres" id="4_yy6sa"]
[ext_resource type="Material" uid="uid://q1b701b13co6" path="res://assets/level/wall/wall_2.tres" id="5_rpeyx"]
[ext_resource type="Material" uid="uid://b1gi4b3ny2q1l" path="res://assets/level/wall/wall_3.tres" id="6_emb7q"]
[ext_resource type="Material" uid="uid://bkwfat6ltd7a7" path="res://assets/level/ceiling/ceiling_1.tres" id="7_u881q"]
[ext_resource type="Material" uid="uid://cxudbowc3a5hy" path="res://assets/level/ceiling/ceiling_2.tres" id="8_2mqye"]
[ext_resource type="ArrayMesh" uid="uid://bc476v18chh3o" path="res://assets/level/floor/floor_1.mesh" id="2_eqm4j"]
[ext_resource type="ArrayMesh" uid="uid://gaekd6523jwo" path="res://assets/level/floor/floor_2.mesh" id="3_yqrx7"]
[ext_resource type="ArrayMesh" uid="uid://b3dnnod3nih10" path="res://assets/level/wall/wall_1.mesh" id="4_yy6sa"]
[ext_resource type="ArrayMesh" uid="uid://cphc3nx1xqrgw" path="res://assets/level/wall/wall_2.mesh" id="5_rpeyx"]
[ext_resource type="ArrayMesh" uid="uid://uvq4b445w8dv" path="res://assets/level/wall/wall_3.mesh" id="6_emb7q"]
[ext_resource type="ArrayMesh" uid="uid://dhutbkqatlwpa" path="res://assets/level/ceiling/ceiling_1.mesh" id="7_u881q"]
[ext_resource type="ArrayMesh" uid="uid://c8aauxqfa3w3b" path="res://assets/level/ceiling/ceiling_2.mesh" id="8_2mqye"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_om6ib"]
@ -32,209 +32,6 @@ size = Vector2(6, 6)
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_imll7"]
[sub_resource type="ArrayMesh" id="ArrayMesh_eqm4j"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_yqrx7"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"attribute_data": PackedByteArray(255, 255, 255, 255, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"material": ExtResource("2_eqm4j"),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 255, 191, 0, 0, 0, 0, 255, 255, 255, 191, 255, 255, 0, 0, 0, 0, 255, 191, 0, 0, 0, 0, 0, 0, 255, 191, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_eqm4j")
[sub_resource type="ArrayMesh" id="ArrayMesh_yy6sa"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_rpeyx"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"attribute_data": PackedByteArray(255, 255, 255, 255, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"material": ExtResource("3_yqrx7"),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 255, 191, 0, 0, 0, 0, 255, 255, 255, 191, 255, 255, 0, 0, 0, 0, 255, 191, 0, 0, 0, 0, 0, 0, 255, 191, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_yy6sa")
[sub_resource type="ArrayMesh" id="ArrayMesh_emb7q"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_u881q"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"attribute_data": PackedByteArray(255, 255, 255, 255, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"material": ExtResource("4_yy6sa"),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 255, 191, 0, 0, 0, 0, 255, 255, 255, 191, 255, 255, 0, 0, 0, 0, 255, 191, 0, 0, 0, 0, 0, 0, 255, 191, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_emb7q")
[sub_resource type="ArrayMesh" id="ArrayMesh_2mqye"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_smfwr"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"attribute_data": PackedByteArray(255, 255, 255, 255, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"material": ExtResource("5_rpeyx"),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 255, 191, 0, 0, 0, 0, 255, 255, 255, 191, 255, 255, 0, 0, 0, 0, 255, 191, 0, 0, 0, 0, 0, 0, 255, 191, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_2mqye")
[sub_resource type="ArrayMesh" id="ArrayMesh_80jgi"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"attribute_data": PackedByteArray(255, 255, 255, 255, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"material": ExtResource("6_emb7q"),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 255, 191, 0, 0, 0, 0, 255, 255, 255, 191, 255, 255, 0, 0, 0, 0, 255, 191, 0, 0, 0, 0, 0, 0, 255, 191, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_emb7q")
[sub_resource type="ArrayMesh" id="ArrayMesh_vx5xa"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_w0omc"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"attribute_data": PackedByteArray(255, 255, 255, 255, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"material": ExtResource("7_u881q"),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 255, 191, 0, 0, 0, 0, 255, 255, 255, 191, 255, 255, 0, 0, 0, 0, 255, 191, 0, 0, 0, 0, 0, 0, 255, 191, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_vx5xa")
[sub_resource type="ArrayMesh" id="ArrayMesh_muvdl"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_bbps6"]
_surfaces = [{
"aabb": AABB(-1, 0, -1, 2, 1e-05, 2),
"attribute_data": PackedByteArray(255, 255, 255, 255, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 2, 0, 1, 0, 3, 0),
"material": ExtResource("8_2mqye"),
"name": "Plane",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray(255, 255, 0, 0, 255, 255, 255, 191, 0, 0, 0, 0, 255, 255, 255, 191, 255, 255, 0, 0, 0, 0, 255, 191, 0, 0, 0, 0, 0, 0, 255, 191, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127, 255, 255, 255, 127)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_muvdl")
[node name="AssetTest" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
@ -264,12 +61,12 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, -4)
[node name="Floors" type="Node3D" parent="Assets"]
[node name="Floor1" type="MeshInstance3D" parent="Assets/Floors"]
mesh = SubResource("ArrayMesh_yqrx7")
mesh = ExtResource("2_eqm4j")
skeleton = NodePath("../..")
[node name="Floor2" type="MeshInstance3D" parent="Assets/Floors"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0)
mesh = SubResource("ArrayMesh_rpeyx")
mesh = ExtResource("3_yqrx7")
skeleton = NodePath("../..")
[node name="Walls" type="Node3D" parent="Assets"]
@ -277,22 +74,22 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -1)
[node name="Wall1" type="MeshInstance3D" parent="Assets/Walls"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
mesh = SubResource("ArrayMesh_u881q")
mesh = ExtResource("4_yy6sa")
[node name="Wall2" type="MeshInstance3D" parent="Assets/Walls"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 2, 0, 0)
mesh = SubResource("ArrayMesh_smfwr")
mesh = ExtResource("5_rpeyx")
[node name="Wall3" type="MeshInstance3D" parent="Assets/Walls"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 4, 0, 0)
mesh = SubResource("ArrayMesh_80jgi")
mesh = ExtResource("6_emb7q")
[node name="Ceilings" type="Node3D" parent="Assets"]
[node name="Ceiling1" type="MeshInstance3D" parent="Assets/Ceilings"]
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 2, 0)
mesh = SubResource("ArrayMesh_w0omc")
mesh = ExtResource("7_u881q")
[node name="Ceiling2" type="MeshInstance3D" parent="Assets/Ceilings"]
transform = Transform3D(-4.37114e-08, 0, -1, -8.74228e-08, -1, 3.82137e-15, -1, 8.74228e-08, 4.37114e-08, 2, 2, 0)
mesh = SubResource("ArrayMesh_bbps6")
mesh = ExtResource("8_2mqye")

View File

@ -1,90 +0,0 @@
[gd_resource type="ArrayMesh" load_steps=14 format=4 uid="uid://chluobkj3vpht"]
[ext_resource type="Texture2D" uid="uid://cj5em70wq1l6f" path="res://assets/level/hallway/hallway_1_C.png" id="1_1uy28"]
[ext_resource type="Texture2D" uid="uid://bi87m5noufg5h" path="res://assets/level/hallway/hallway_1_E.png" id="2_3o6xi"]
[ext_resource type="Texture2D" uid="uid://c6ublhoexsuk" path="res://assets/level/hallway/hallway_1_M.png" id="3_qrctk"]
[ext_resource type="Shader" uid="uid://ckxc0ngd37rtk" path="res://src/shaders/gunk.gdshader" id="4_1eiv3"]
[ext_resource type="FastNoiseLite" uid="uid://cnlvdtx68giv6" path="res://assets/materials/gunk_noise.tres" id="5_os6sm"]
[ext_resource type="Texture2D" uid="uid://dtp6ctfi5l4v8" path="res://assets/level/hallway/hallway_1_N.png" id="6_2gcng"]
[ext_resource type="Texture2D" uid="uid://5ua6bne0btou" path="res://assets/level/hallway/hallway_1_R.png" id="7_on856"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_ow0bp"]
load_path = "res://.godot/imported/debug_mask.png-fd2bc783338ed9439fe81a4eef9d86da.s3tc.ctex"
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_d70or"]
width = 256
height = 256
depth = 32
seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("5_os6sm")
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_0ksu8"]
width = 256
height = 256
depth = 32
seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("5_os6sm")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2roq2"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("4_1eiv3")
shader_parameter/color_1 = Color(0, 0.03, 0.1, 1)
shader_parameter/color_2 = Color(0, 0.1, 0.3, 1)
shader_parameter/emission_color = Color(0.25, 0.88, 1, 1)
shader_parameter/pixellation = 128.0
shader_parameter/time_pixellation = 30.0
shader_parameter/roughness = 0.15
shader_parameter/specular_contribution = 0.8
shader_parameter/emission_strength = 0.02
shader_parameter/uv_scale = Vector2(4, 4)
shader_parameter/time_scale = 0.2
shader_parameter/edge_bleed = 0.25
shader_parameter/gunk_mask = SubResource("CompressedTexture2D_ow0bp")
shader_parameter/gunk_noise = SubResource("NoiseTexture3D_d70or")
shader_parameter/gunk_normal_map = SubResource("NoiseTexture3D_0ksu8")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fk1xc"]
next_pass = SubResource("ShaderMaterial_2roq2")
albedo_texture = ExtResource("1_1uy28")
metallic = 1.0
metallic_texture = ExtResource("3_qrctk")
roughness_texture = ExtResource("7_on856")
emission_enabled = true
emission_texture = ExtResource("2_3o6xi")
normal_enabled = true
normal_texture = ExtResource("6_2gcng")
texture_filter = 4
[sub_resource type="ArrayMesh" id="ArrayMesh_f5v27"]
_surfaces = [{
"aabb": AABB(-2, -2, -2, 4, 4, 4),
"format": 34896613377,
"index_count": 24,
"index_data": PackedByteArray("AAABAAIAAwABAAAAAgABAAQABQABAAMABgACAAQABQADAAYABwACAAYABgADAAcA"),
"name": "Cube",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 8,
"vertex_data": PackedByteArray("//8AAAAAAAAAAAAAAAAAAP////8AAAAA//8AAP//AAAAAP//AAAAAAAAAAD//wAAAAD/////AAD///////8AAA==")
}]
blend_shape_mode = 0
[resource]
_surfaces = [{
"aabb": AABB(-2, -2, -2, 4, 4, 4),
"attribute_data": PackedByteArray("/3//f/9///8AAP9/AAD///9/AAD/f/9/AAAAAAAA/3//f/9/////f/9//////////38AAP//AAD/f/9/////fw=="),
"format": 34896613399,
"index_count": 24,
"index_data": PackedByteArray("AAABAAIAAgABAAMABAAFAAYABgAFAAcACAAJAAoACgAJAAsADAANAA4ADgANAA8A"),
"material": SubResource("StandardMaterial3D_fk1xc"),
"name": "Cube",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 16,
"vertex_data": PackedByteArray("//8AAAAA/78AAAAAAAD/v/////8AAP+/AAD//wAA/78AAAAA////////AAD/////AAD//////////////////wAAAAD//1TVAAAAAAAAVNX//wAA//9U1f//AAAAAFTV////////VNX/////AABU1QAA/////1TVAAD//wAAVNX/f/9//3//f/9//3//f/9//z//v/8//7//P/+//z//v1TVqipU1aoqVNWqKlTVqipUVVRVVFVUVVRVVFVUVVRV")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_f5v27")

View File

@ -1,90 +0,0 @@
[gd_resource type="ArrayMesh" load_steps=14 format=4 uid="uid://dcxt6lua0fivn"]
[ext_resource type="Texture2D" uid="uid://c3yo0fiux7uvl" path="res://assets/level/hallway/hallway_2_C.png" id="1_k1hbq"]
[ext_resource type="Texture2D" uid="uid://blicao0n4875s" path="res://assets/level/hallway/hallway_2_E.png" id="2_8wimg"]
[ext_resource type="Texture2D" uid="uid://crge5t3vivfhn" path="res://assets/level/hallway/hallway_2_M.png" id="3_fcyri"]
[ext_resource type="Shader" uid="uid://ckxc0ngd37rtk" path="res://src/shaders/gunk.gdshader" id="4_l5uwp"]
[ext_resource type="FastNoiseLite" uid="uid://cnlvdtx68giv6" path="res://assets/materials/gunk_noise.tres" id="5_se3k2"]
[ext_resource type="Texture2D" uid="uid://d3eaofj7ntddk" path="res://assets/level/hallway/hallway_2_N.png" id="6_q121c"]
[ext_resource type="Texture2D" uid="uid://dxy4wicwjb38a" path="res://assets/level/hallway/hallway_2_R.png" id="7_g24st"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_ow0bp"]
load_path = "res://.godot/imported/debug_mask.png-fd2bc783338ed9439fe81a4eef9d86da.s3tc.ctex"
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_d70or"]
width = 256
height = 256
depth = 32
seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("5_se3k2")
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_0ksu8"]
width = 256
height = 256
depth = 32
seamless = true
seamless_blend_skirt = 0.5
noise = ExtResource("5_se3k2")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_6fwow"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("4_l5uwp")
shader_parameter/color_1 = Color(0, 0.03, 0.1, 1)
shader_parameter/color_2 = Color(0, 0.1, 0.3, 1)
shader_parameter/emission_color = Color(0.25, 0.88, 1, 1)
shader_parameter/pixellation = 128.0
shader_parameter/time_pixellation = 30.0
shader_parameter/roughness = 0.15
shader_parameter/specular_contribution = 0.8
shader_parameter/emission_strength = 0.02
shader_parameter/uv_scale = Vector2(4, -4)
shader_parameter/time_scale = 0.2
shader_parameter/edge_bleed = 0.25
shader_parameter/gunk_mask = SubResource("CompressedTexture2D_ow0bp")
shader_parameter/gunk_noise = SubResource("NoiseTexture3D_d70or")
shader_parameter/gunk_normal_map = SubResource("NoiseTexture3D_0ksu8")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6idi3"]
next_pass = SubResource("ShaderMaterial_6fwow")
albedo_texture = ExtResource("1_k1hbq")
metallic = 1.0
metallic_texture = ExtResource("3_fcyri")
roughness_texture = ExtResource("7_g24st")
emission_enabled = true
emission_texture = ExtResource("2_8wimg")
normal_enabled = true
normal_texture = ExtResource("6_q121c")
texture_filter = 4
[sub_resource type="ArrayMesh" id="ArrayMesh_f5v27"]
_surfaces = [{
"aabb": AABB(-2, -2, -2, 4, 4, 4),
"format": 34896613377,
"index_count": 24,
"index_data": PackedByteArray("AAABAAIAAwABAAAAAgABAAQABQABAAMABgACAAQABQADAAYABwACAAYABgADAAcA"),
"name": "Cube",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 8,
"vertex_data": PackedByteArray("//8AAAAAAAAAAAAAAAAAAP////8AAAAA//8AAP//AAAAAP//AAAAAAAAAAD//wAAAAD/////AAD///////8AAA==")
}]
blend_shape_mode = 0
[resource]
_surfaces = [{
"aabb": AABB(-2, -2, -2, 4, 4, 4),
"attribute_data": PackedByteArray("/3//f/9///8AAP9/AAD///9/AAD/f/9/AAAAAAAA/3//f/9/////f/9//////////38AAP//AAD/f/9/////fw=="),
"format": 34896613399,
"index_count": 24,
"index_data": PackedByteArray("AAABAAIAAgABAAMABAAFAAYABgAFAAcACAAJAAoACgAJAAsADAANAA4ADgANAA8A"),
"material": SubResource("StandardMaterial3D_6idi3"),
"name": "Cube",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 16,
"vertex_data": PackedByteArray("//8AAAAA/78AAAAAAAD/v/////8AAP+/AAD//wAA/78AAAAA////////AAD/////AAD//////////////////wAAAAD//1TVAAAAAAAAVNX//wAA//9U1f//AAAAAFTV////////VNX/////AABU1QAA/////1TVAAD//wAAVNX/f/9//3//f/9//3//f/9//z//v/8//7//P/+//z//v1TVqipU1aoqVNWqKlTVqipUVVRVVFVUVVRVVFVUVVRV")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_f5v27")

View File

@ -1,58 +0,0 @@
[gd_resource type="MeshLibrary" load_steps=9 format=4 uid="uid://vg03fgf3y33r"]
[ext_resource type="Texture2D" uid="uid://cj5em70wq1l6f" path="res://assets/level/hallway/hallway_1_C.png" id="1_qs4ap"]
[ext_resource type="Texture2D" uid="uid://bi87m5noufg5h" path="res://assets/level/hallway/hallway_1_E.png" id="2_qcnin"]
[ext_resource type="Texture2D" uid="uid://c6ublhoexsuk" path="res://assets/level/hallway/hallway_1_M.png" id="3_qphuf"]
[ext_resource type="Texture2D" uid="uid://dtp6ctfi5l4v8" path="res://assets/level/hallway/hallway_1_N.png" id="4_qv560"]
[ext_resource type="Texture2D" uid="uid://5ua6bne0btou" path="res://assets/level/hallway/hallway_1_R.png" id="5_rd1qh"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tx1dy"]
albedo_texture = ExtResource("1_qs4ap")
metallic = 1.0
metallic_texture = ExtResource("3_qphuf")
roughness_texture = ExtResource("5_rd1qh")
emission_enabled = true
emission_texture = ExtResource("2_qcnin")
normal_enabled = true
normal_texture = ExtResource("4_qv560")
texture_filter = 4
[sub_resource type="ArrayMesh" id="ArrayMesh_f5v27"]
_surfaces = [{
"aabb": AABB(-2, -2, -2, 4, 4, 4),
"format": 34896613377,
"index_count": 24,
"index_data": PackedByteArray("AAABAAIAAwABAAAAAgABAAQABQABAAMABgACAAQABQADAAYABwACAAYABgADAAcA"),
"name": "Cube",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 8,
"vertex_data": PackedByteArray("//8AAAAAAAAAAAAAAAAAAP////8AAAAA//8AAP//AAAAAP//AAAAAAAAAAD//wAAAAD/////AAD///////8AAA==")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_p1wtp"]
_surfaces = [{
"aabb": AABB(-2, -2, -2, 4, 4, 4),
"attribute_data": PackedByteArray("/3//f/9///8AAP9/AAD///9/AAD/f/9/AAAAAAAA/3//f/9/////f/9//////////38AAP//AAD/f/9/////fw=="),
"format": 34896613399,
"index_count": 24,
"index_data": PackedByteArray("AAABAAIAAgABAAMABAAFAAYABgAFAAcACAAJAAoACgAJAAsADAANAA4ADgANAA8A"),
"material": SubResource("StandardMaterial3D_tx1dy"),
"name": "Cube",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 16,
"vertex_data": PackedByteArray("//8AAAAA/78AAAAAAAD/v/////8AAP+/AAD//wAA/78AAAAA////////AAD/////AAD//////////////////wAAAAD//1TVAAAAAAAAVNX//wAA//9U1f//AAAAAFTV////////VNX/////AABU1QAA/////1TVAAD//wAAVNX/f/9//3//f/9//3//f/9//z//v/8//7//P/+//z//v1TVqipU1aoqVNWqKlTVqipUVVRVVFVUVVRVVFVUVVRV")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_f5v27")
[resource]
item/0/name = "Hallway 1"
item/0/mesh = SubResource("ArrayMesh_p1wtp")
item/0/mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/0/mesh_cast_shadow = 1
item/0/shapes = []
item/0/navigation_mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/0/navigation_layers = 1

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,10 @@ var _draw_queue: Array[Callable] = []
var _dirty := false
func clear(color: Color) -> void:
queue_draw(func() -> void: draw_rect(Rect2(0, 0, size.x, size.y), color, true))
func queue_draw(op: Callable) -> void:
_draw_queue.push_back(op)
_dirty = true

View File

@ -7,6 +7,7 @@ signal clear_total_updated(clear_total: float)
const CONTINUITY_LIMIT := 16
const BUFFER_LIMIT := 3
const FACE_EPSILON := 0.01
const CLEAR_COLOR := Color.BLACK
const MASK_COLOR := Color.RED
const CLEAR_TOTAL_EPSILON := 1
@ -31,9 +32,6 @@ var _mutex: Mutex = Mutex.new()
var _semaphore: Semaphore = Semaphore.new()
var _exit_thread := false
@onready var mesh: ArrayMesh = mesh_instance.mesh
@onready var gunk_mat: ShaderMaterial = mesh_instance.mesh.surface_get_material(0).next_pass
@onready var mask_viewport: SubViewport = %MaskViewport
@onready var mask_control: DrawController = %MaskControl
@ -41,9 +39,17 @@ var _exit_thread := false
func _ready() -> void:
# If no mesh_instance was provided, use the first direct child.
if not mesh_instance:
for c: Node in get_children():
if c is MeshInstance3D:
mesh_instance = c as MeshInstance3D
assert(mesh_instance, "GunkBody %s has no associated mesh!" % str(self))
mask_viewport.size = Vector2(mask_dim, mask_dim)
var gunk_mat: ShaderMaterial = mesh_instance.mesh.surface_get_material(0).next_pass
gunk_mat.set_shader_parameter("gunk_mask", mask_viewport.get_texture())
meshtool.create_from_surface(mesh, 0)
meshtool.create_from_surface(mesh_instance.mesh as ArrayMesh, 0)
_thread = Thread.new()
_thread.start(_async_compute_clear_total)
@ -97,12 +103,7 @@ func _exit_tree() -> void:
func clear_all() -> void:
mask_control.queue_draw(
func() -> void:
mask_control.draw_rect(
Rect2(0, 0, mask_control.size.x, mask_control.size.y), MASK_COLOR
)
)
mask_control.clear(MASK_COLOR)
## Get the precise number of gunk pixels cleared from this image.