Eevee: Fix Shader compilation.

This commit is contained in:
Clément Foucault 2017-07-18 16:48:45 +02:00
parent 3be8ab881e
commit ebc2833ca1
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ Closure nodetree_exec(void)
Closure result = Closure(radiance, 1.0, vec4(ssr_spec, roughness), normal_encode(normalize(viewNormal), viewCameraVec), 0);
#if !defined(USE_ALPHA_BLEND)
#if !defined(USE_ALPHA_BLEND) && !defined(USE_ALPHA_HASH) && !defined(USE_ALPHA_CLIP)
result.opacity = length(viewPosition);
#endif