You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Make the lightmapper not dilate before denoising.
Dilating noisy data caused issues for the denoiser. Fixes #82526.
This commit is contained in:
@@ -1493,14 +1493,6 @@ LightmapperRD::BakeError LightmapperRD::bake(BakeQuality p_quality, bool p_use_d
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
|
||||||
SWAP(light_accum_tex, light_accum_tex2);
|
|
||||||
BakeError error = _dilate(rd, compute_shader, compute_base_uniform_set, push_constant, light_accum_tex2, light_accum_tex, atlas_size, atlas_slices * (p_bake_sh ? 4 : 1));
|
|
||||||
if (unlikely(error != BAKE_OK)) {
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* DENOISE */
|
/* DENOISE */
|
||||||
|
|
||||||
if (p_use_denoiser) {
|
if (p_use_denoiser) {
|
||||||
@@ -1515,6 +1507,7 @@ LightmapperRD::BakeError LightmapperRD::bake(BakeQuality p_quality, bool p_use_d
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
SWAP(light_accum_tex, light_accum_tex2);
|
SWAP(light_accum_tex, light_accum_tex2);
|
||||||
@@ -1523,7 +1516,6 @@ LightmapperRD::BakeError LightmapperRD::bake(BakeQuality p_quality, bool p_use_d
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef DEBUG_TEXTURES
|
#ifdef DEBUG_TEXTURES
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user