feat: lightmapgi

This commit is contained in:
Sara 2024-12-04 22:59:21 +01:00
parent 9a4a559f0c
commit 436f2f05ee
44 changed files with 226 additions and 63 deletions

File diff suppressed because one or more lines are too long

View file

@ -13,6 +13,8 @@ sky_material = SubResource("ProceduralSkyMaterial_c8r8t")
[resource]
background_mode = 2
sky = SubResource("Sky_v6osu")
ambient_light_sky_contribution = 0.67
ambient_light_energy = 0.5
reflected_light_source = 2
fog_mode = 1
fog_density = 0.835

Binary file not shown.

View file

@ -0,0 +1,26 @@
[remap]
importer="2d_array_texture"
type="CompressedTexture2DArray"
uid="uid://ci8l4xlvthtc0"
path="res://.godot/imported/section_2.exr-3c4f05922d6d2e7249eebce8357631df.ctexarray"
metadata={
"vram_texture": false
}
[deps]
source_file="res://lighting/section_2.exr"
dest_files=["res://.godot/imported/section_2.exr-3c4f05922d6d2e7249eebce8357631df.ctexarray"]
[params]
compress/mode=3
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/channel_pack=1
mipmaps/generate=false
mipmaps/limit=-1
slices/horizontal=1
slices/vertical=24

Binary file not shown.

View file

@ -21,7 +21,7 @@ nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=3
meshes/light_baking=0
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true

View file

@ -21,8 +21,8 @@ nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/light_baking=2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true

Binary file not shown.

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffebdd55cd0133a0abad0ad600c63f132d54dc4e4be4b5542e69c7f63b7731c9
oid sha256:db7edc12a00d38e0567993552d9fa611e7245ce1de199bebdf244276f6ea0ce0
size 8131148

View file

@ -22,7 +22,7 @@ meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ee5c56fe5eb7fe06ba29568373adde382c75d42aef1ab9f36540aa5b3f14ca9c
size 8135572
oid sha256:efcae9b5182c01168a13f1696504c312d18904b8f84443ceaf6e32286a2d732a
size 8130736

View file

@ -22,7 +22,7 @@ meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true

View file

@ -21,8 +21,8 @@ nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/light_baking=2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true

View file

@ -7,7 +7,8 @@
resource_name = "Mud"
specular_mode = 1
albedo_texture = ExtResource("1_1d2ym")
metallic = 0.497409
roughness = 0.77
metallic_specular = 0.22
roughness = 0.75
normal_enabled = true
normal_texture = ExtResource("2_4oxut")
rim_tint = 1.0

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5733332c5fb790ecd622ae2734cc608719147c30612a331b1abe2d75261ad049
size 8137592
oid sha256:5c546fdfeadb40663f4ab84cd2711f94e1e7ef183f5faf5c09e27c54210d0109
size 8134928

View file

@ -22,7 +22,7 @@ meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true

View file

@ -22,7 +22,7 @@ meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6cb94dca6de3f286f765038f01d3cbdadf5d357db98605cf1925e48321d03ae5
size 8564736
oid sha256:ee5c56fe5eb7fe06ba29568373adde382c75d42aef1ab9f36540aa5b3f14ca9c
size 8135572

View file

@ -21,8 +21,8 @@ nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/light_baking=2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
@ -33,7 +33,7 @@ animation/import_rest_as_RESET=false
import_script/path=""
_subresources={
"materials": {
"Mud.001": {
"Mud": {
"use_external/enabled": true,
"use_external/path": "res://models/props/materials/Mud.tres"
}

Binary file not shown.

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23e9631b4ef67377910e7f77751ce394fbd7a18210aa6a2997251aab755c5f3d
size 5284454
oid sha256:eb1473bb0bb4b8d0cd9d31be2bb03c8807ded553ecb3b1ed0bf9d40198432aa0
size 5274146

View file

@ -9,7 +9,7 @@ metadata={
"vram_texture": true
}
generator_parameters={
"md5": "d3ffd510092233bc8ee0d9af9a43c154"
"md5": "25a870a740b8d870b5698fe1f7aed359"
}
[deps]

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e53065ecbc32884c5eea290e7deb5f44bb4d51ca80973726f53c91e05f0e4e2e
size 3273239
oid sha256:9c48d36d9703876c58ff5d49523aaa93844fdac0c9ce964c88cdfaadd0effbee
size 2854388

View file

@ -9,7 +9,7 @@ metadata={
"vram_texture": true
}
generator_parameters={
"md5": "afeb59ed76660795607a2c64e9614acd"
"md5": "98b9e5995408e21c952eaa2298babcfe"
}
[deps]

View file

@ -21,8 +21,8 @@ nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/light_baking=2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true

Binary file not shown.

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:906060860d57464b1e1a4b1a9db9ec50de73b2acd1255e3cb432480a6784d50c
size 7715712

View file

@ -0,0 +1,43 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://c24vfe6oekknf"
path="res://.godot/imported/walkover.glb-2f6e7ee4b909cd654009869d3f3df741.scn"
[deps]
source_file="res://models/props/walkover.glb"
dest_files=["res://.godot/imported/walkover.glb-2f6e7ee4b909cd654009869d3f3df741.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={
"materials": {
"Planks": {
"use_external/enabled": true,
"use_external/path": "res://models/props/materials/Planks.tres"
}
}
}
gltf/naming_version=1
gltf/embedded_image_handling=1

Binary file not shown.

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ee739e2d67eceea56c649c7930f9c89628287d10f84c5f15f28f79f6df527c26
size 5328722

View file

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ce807gik0jauq"
path.s3tc="res://.godot/imported/walkover_planks.png-ed526647753d54acfd10d684b047f363.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "9a04a9ca6cb72f21abef3f2804c5e752"
}
[deps]
source_file="res://models/props/walkover_planks.png"
dest_files=["res://.godot/imported/walkover_planks.png-ed526647753d54acfd10d684b047f363.s3tc.ctex"]
[params]
compress/mode=2
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

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad8d6b9b3d71e985209e746d0f7e8ae66fad07013b0098265615e8684657d283
size 2382502

View file

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://hxxlsj6fnct0"
path.s3tc="res://.godot/imported/walkover_planks_normal.png-d286fe42ceda4f72a7c11a9a786c9e7a.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "6e727784c943200bad88fe614defb855"
}
[deps]
source_file="res://models/props/walkover_planks_normal.png"
dest_files=["res://.godot/imported/walkover_planks_normal.png-d286fe42ceda4f72a7c11a9a786c9e7a.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://models/props/walkover_planks_normal.png"
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

View file

@ -21,8 +21,8 @@ nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/light_baking=2
meshes/lightmap_texel_size=0.1
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
@ -37,6 +37,11 @@ _subresources={
"use_external/enabled": true,
"use_external/path": "res://models/props/materials/Planks.tres"
}
},
"nodes": {
"PATH:wooden_bar_large": {
"mesh_instance/cast_shadow": 2
}
}
}
gltf/naming_version=1

Binary file not shown.

View file

@ -335,7 +335,7 @@ shape = SubResource("SphereShape3D_v7ajo")
spring_length = 1.3
[node name="Camera" type="Camera3D" parent="CameraParent/CameraSpring"]
transform = Transform3D(0.984309, 0.0318127, -0.17356, 0.00251854, 0.98098, 0.194092, 0.176434, -0.191484, 0.965508, 0, 0, 1.3)
transform = Transform3D(0.984053, 0.00860135, -0.177669, 0.0105107, 0.994273, 0.10635, 0.177567, -0.106522, 0.978327, -8.00937e-08, -3.57628e-07, 1.3)
fov = 41.9276
far = 100.0

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -18,8 +18,8 @@ config/icon="res://icon.svg"
[display]
window/size/viewport_width=1920
window/size/viewport_height=1080
window/size/viewport_width=2304
window/size/viewport_height=1296
window/size/mode=3
window/stretch/mode="viewport"
window/stretch/aspect="keep_width"
@ -89,4 +89,8 @@ run={
[rendering]
scaling_3d/mode=1
scaling_3d/scale=0.8
anti_aliasing/quality/msaa_3d=2
anti_aliasing/quality/screen_space_aa=1
occlusion_culling/use_occlusion_culling=true