You've already forked godot
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:
committed by
Juan Linietsky
parent
76c6f39d99
commit
2c67cc654f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user