Differential D10575 Diff 35726 source/blender/draw/engines/eevee/shaders/closure_eval_diffuse_lib.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/closure_eval_diffuse_lib.glsl
| Context not available. | |||||
| cl_out.radiance += cl_common.diffuse_accum * probe_radiance; | cl_out.radiance += cl_common.diffuse_accum * probe_radiance; | ||||
| } | } | ||||
| /* Apply occlusion on radiance before the light loop. */ | /* Apply occlusion on radiance before the light loop. */ | ||||
| cl_out.radiance *= cl_eval.ambient_occlusion; | float ao_transfer = 1.0 * cl_eval.ambient_occlusion; | ||||
| cl_out.radiance *= ao_transfer; | |||||
| cl_out.AO = ao_transfer; | |||||
| } | } | ||||
| void closure_Diffuse_eval_end(ClosureInputDiffuse cl_in, | void closure_Diffuse_eval_end(ClosureInputDiffuse cl_in, | ||||
| Context not available. | |||||
| cl_out.radiance = vec3(0.0); | cl_out.radiance = vec3(0.0); | ||||
| return; | return; | ||||
| #endif | #endif | ||||
| } | } | ||||
| No newline at end of file | |||||
| Context not available. | |||||