1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

AO support for GIProbe (right on time for Godot Sprint!)

This commit is contained in:
Juan Linietsky
2019-10-14 03:45:44 -03:00
committed by Juan Linietsky
parent 76c6f39d99
commit 2c67cc654f
13 changed files with 129 additions and 42 deletions

View File

@@ -1555,6 +1555,8 @@ void RasterizerSceneForwardRD::_setup_gi_probes(RID *p_gi_probe_probe_cull_resul
gi_probe_ubo.blend_ambient = !storage->gi_probe_is_interior(base_probe);
gi_probe_ubo.texture_slot = gi_probe_instance_get_slot(rpi);
gi_probe_ubo.anisotropy_strength = storage->gi_probe_get_anisotropy_strength(base_probe);
gi_probe_ubo.ao = storage->gi_probe_get_ao(base_probe);
gi_probe_ubo.ao_strength = storage->gi_probe_get_ao_strength(base_probe);
if (gi_probe_is_anisotropic()) {
gi_probe_ubo.texture_slot *= 3;