Page Menu
Home
Search
Configure Global Search
Log In
Differential
D3205
Diff 10536
source/blender/gpu/shaders/gpu_shader_material.glsl
Changeset View
So this is the same thing the other patch did and that I said is not what we want.
We need EVALUATION of the lighting at this point.
shader.radiance only contains a part of this lighting.
You need to evaluate the glossy reflection from the SSR inputs contained by the Closure. For this look at fallback_cubemap() in effect_ssr_frag.glsl (we might want to put this function in a shared place).
You also need to collapse the SSS input too.
All of this need to happen only if Eevee is enabled to put some #ifdef in there.