feat: lightmapgi

main
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.

BIN
godot/models/props/dirtpile_large.glb (Stored with Git LFS)

Binary file not shown.

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

BIN
godot/models/props/dirtpile_wall.glb (Stored with Git LFS)

Binary file not shown.

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

BIN
godot/models/props/trenchfloor.glb (Stored with Git LFS)

Binary file not shown.

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

BIN
godot/models/props/trenchwall_2m_dirt.glb (Stored with Git LFS)

Binary file not shown.

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.

Binary file not shown.

View File

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

Binary file not shown.

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.

BIN
godot/models/props/walkover.glb (Stored with Git LFS) Normal file

Binary file not shown.

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.

BIN
godot/models/props/walkover_planks.png (Stored with Git LFS) Normal file

Binary file not shown.

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

BIN
godot/models/props/walkover_planks_normal.png (Stored with Git LFS) Normal file

Binary file not shown.

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