Fix book lightmap and wip lightmap scene test

This commit is contained in:
stilobique-surface
2021-05-10 11:09:50 +02:00
parent 684cb35784
commit 876d2d38c7
8 changed files with 39 additions and 7 deletions
Binary file not shown.
+1 -1
View File
@@ -15,7 +15,7 @@
"nodes" : [
{
"mesh" : 0,
"name" : "Book",
"name" : "sm_book",
"translation" : [
0.08216173946857452,
0.03827984258532524,
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,24 @@
[remap]
importer="texture_array"
type="TextureArray"
path="res://.import/CheckLightmap.exr-a30cb7f4507712e4e8789c79b715eefb.texarr"
metadata={
"vram_texture": false
}
[deps]
source_file="res://developers/aurelien/CheckLightmap.exr"
dest_files=[ "res://.import/CheckLightmap.exr-a30cb7f4507712e4e8789c79b715eefb.texarr" ]
[params]
compress/mode=0
compress/no_bptc_if_rgb=false
flags/repeat=false
flags/filter=true
flags/mipmaps=false
flags/srgb=false
slices/horizontal=1
slices/vertical=1
Binary file not shown.
+14 -6
View File
@@ -1,7 +1,9 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/props/book/Book.mesh" type="ArrayMesh" id=1]
[ext_resource path="res://scenes/levels/test_bake.lmbake" type="BakedLightmapData" id=2]
[ext_resource path="res://assets/props/book/sm_book.mesh" type="ArrayMesh" id=1]
[ext_resource path="res://developers/aurelien/CheckLightmap.lmbake" type="BakedLightmapData" id=2]
[sub_resource type="PlaneMesh" id=1]
[node name="Spatial" type="Spatial"]
@@ -11,14 +13,20 @@ capture_quality = 2
light_data = ExtResource( 2 )
[node name="SpotLight" type="SpotLight" parent="."]
transform = Transform( 1, 0, 0, 0, 0.145807, 0.989313, 0, -0.989313, 0.145807, 1.52905, 1.08158, 0.159406 )
visible = false
transform = Transform( 1, 0, 0, 0, 0.145807, 0.989313, 0, -0.989313, 0.145807, 0.563775, 2.12757, 0.864609 )
light_energy = 10.0
light_indirect_energy = 4.0
light_bake_mode = 2
shadow_enabled = true
spot_angle = 32.1
[node name="Book" type="MeshInstance" parent="."]
transform = Transform( 5.29875, 0, 0, 0, 5.29875, 0, 0, 0, 5.29875, 0, 0, 1.35936 )
transform = Transform( 5.29875, 0, 0, 0, 5.29875, 0, 0, 0, 5.29875, 0, 0.224351, 1.35936 )
use_in_baked_light = true
mesh = ExtResource( 1 )
material/0 = null
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 3.21876, 0, 0, 0, 3.21876, 0, 0, 0, 4.63275, 0, 0, 0 )
mesh = SubResource( 1 )
material/0 = null