1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

Antialias direct light samples in LightmapperRD

Additionally use Vogel disk to enhance soft shadow quality.
This commit is contained in:
clayjohn
2024-08-18 01:10:48 -07:00
parent 96be44c0ec
commit 1521e49c23
2 changed files with 106 additions and 41 deletions

View File

@@ -1584,9 +1584,6 @@ LightmapperRD::BakeError LightmapperRD::bake(BakeQuality p_quality, bool p_use_d
#endif
/* SECONDARY (indirect) LIGHT PASS(ES) */
if (p_step_function) {
p_step_function(0.6, RTR("Integrate indirect lighting"), p_bake_userdata, true);
}
if (p_bounces > 0) {
Vector<RD::Uniform> uniforms;
@@ -1650,6 +1647,10 @@ LightmapperRD::BakeError LightmapperRD::bake(BakeQuality p_quality, bool p_use_d
rd->submit();
rd->sync();
if (p_step_function) {
p_step_function(0.6, RTR("Integrate indirect lighting"), p_bake_userdata, true);
}
int count = 0;
for (int s = 0; s < atlas_slices; s++) {
push_constant.atlas_slice = s;