Fix unreported: Eevee Principled Shader: Crash because Intel does not like dead code
The reason for the crash is still a bit confusing, but on Windows with Intel HD Graphics 4000 it always happens when you enable `Use Nodes` or when you try to connect the Pricipled Shader node to the output without the `Subsurface Scattering` and `Subsurface Translucency` options enabled.
This commit is contained in:
@@ -298,9 +298,7 @@ vec3 light_translucent(LightData ld, vec3 W, vec3 N, vec4 l_vector, float scale)
|
||||
{
|
||||
#if !defined(USE_TRANSLUCENCY) || defined(VOLUMETRICS)
|
||||
return vec3(0.0);
|
||||
#endif
|
||||
|
||||
#ifndef VOLUMETRICS
|
||||
#else
|
||||
vec3 vis = vec3(1.0);
|
||||
|
||||
/* Only shadowed light can produce translucency */
|
||||
|
||||
Reference in New Issue
Block a user