summaryrefslogtreecommitdiff
path: root/modules/lightmapper_rd/lm_common_inc.glsl
diff options
context:
space:
mode:
authorjfons <joan.fonssanchez@gmail.com>2021-04-25 23:36:39 +0200
committerjfons <joan.fonssanchez@gmail.com>2021-05-03 18:10:34 +0200
commit6995b0429c5b42d41cc4d1851ea1f2272f121a26 (patch)
tree4356830f39c5efbc959b5d8dcdff472a5e96fa75 /modules/lightmapper_rd/lm_common_inc.glsl
parenteb57dcdb909dd45eaff6e25858a1907e13df4f59 (diff)
Assorted fixes to UV unwrapping and GPU lightmapper
Various fixes to UV2 unwrapping and the GPU lightmapper. Listed here for context in case of git blame/bisect: * Fix UV2 unwrapping on import, also cleaned up the unwrap cache code. * Fix saving of RGBA images in EXR format. * Fixes to the GPU lightmapper: - Added padding between atlas elements, avoids bleeding. - Remove old SDF generation code. - Fix baked attenuation for Omni/Spot lights. - Fix baking of material properties onto UV2 (wireframe was wrongly used before). - Disable statically baked lights for objects that have a lightmap texture to avoid applying the same light twice. - Fix lightmap pairing in RendererSceneCull. - Fix UV2 array generated from `RenderingServer::mesh_surface_get_arrays()`. - Port autoexposure fix for OIDN from 3.x. - Save debug textures as EXR when using floating point format.
Diffstat (limited to 'modules/lightmapper_rd/lm_common_inc.glsl')
-rw-r--r--modules/lightmapper_rd/lm_common_inc.glsl7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/lightmapper_rd/lm_common_inc.glsl b/modules/lightmapper_rd/lm_common_inc.glsl
index f8a0cd16de..1581639036 100644
--- a/modules/lightmapper_rd/lm_common_inc.glsl
+++ b/modules/lightmapper_rd/lm_common_inc.glsl
@@ -84,9 +84,8 @@ layout(set = 0, binding = 7, std430) restrict readonly buffer Probes {
probe_positions;
layout(set = 0, binding = 8) uniform utexture3D grid;
-layout(set = 0, binding = 9) uniform texture3D grid_sdf;
-layout(set = 0, binding = 10) uniform texture2DArray albedo_tex;
-layout(set = 0, binding = 11) uniform texture2DArray emission_tex;
+layout(set = 0, binding = 9) uniform texture2DArray albedo_tex;
+layout(set = 0, binding = 10) uniform texture2DArray emission_tex;
-layout(set = 0, binding = 12) uniform sampler linear_sampler;
+layout(set = 0, binding = 11) uniform sampler linear_sampler;