Fix T57708: Crash on Eevee rendering with SSR enabled.
Intel does not like dead code. The driver for `Intel HD Graphics 4000` crashes in these cases.
This commit is contained in:
parent
b0d0179d60
commit
c39d5a6c88
Notes:
blender-bot
2023-02-14 06:49:57 +01:00
Referenced by issue #57816, Crash when deleting recently orphaned collection Referenced by issue #57708, Crash on Eevee Rendering OpenGL issue ?
|
@ -211,9 +211,9 @@ void fallback_cubemap(
|
|||
/* Specular probes */
|
||||
vec3 spec_dir = get_specular_reflection_dominant_dir(N, V, roughnessSquared);
|
||||
|
||||
#ifdef SSR_AO
|
||||
vec4 rand = texelfetch_noise_tex(gl_FragCoord.xy);
|
||||
vec3 bent_normal;
|
||||
#ifdef SSR_AO
|
||||
float final_ao = occlusion_compute(N, viewPosition, 1.0, rand, bent_normal);
|
||||
final_ao = specular_occlusion(dot(N, V), final_ao, roughness);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue