diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-06 19:19:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-06 19:27:59 +0300 |
commit | 46f659ba2d78b948d5a3a0e05567a5c71deb06db (patch) | |
tree | 02d01f8c75672ec4012adbe37742fa02cee7f243 | |
parent | 81615ddf86173e6525fb92d26dc5cf130a4cdef5 (diff) |
Eevee: Fix shader compilation issue.
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl | 6 | ||||
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/ltc_lib.glsl | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl b/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl index 5ee0cb74894..1b68db8364c 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl @@ -8,10 +8,10 @@ uniform sampler2DArray probeCubes; uniform float lodMax; uniform vec3 shCoefs[9]; -#ifndef __UTIL_TEX__ -#define __UTIL_TEX__ +#ifndef UTIL_TEX +#define UTIL_TEX uniform sampler2DArray utilTex; -#endif /* __UTIL_TEX__ */ +#endif /* UTIL_TEX */ uniform sampler2DArray shadowCubes; uniform sampler2DArrayShadow shadowCascades; diff --git a/source/blender/draw/engines/eevee/shaders/ltc_lib.glsl b/source/blender/draw/engines/eevee/shaders/ltc_lib.glsl index cd16203703f..f296eedc3ee 100644 --- a/source/blender/draw/engines/eevee/shaders/ltc_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/ltc_lib.glsl @@ -2,10 +2,10 @@ #define USE_LTC -#ifndef __UTIL_TEX__ -#define __UTIL_TEX__ +#ifndef UTIL_TEX +#define UTIL_TEX uniform sampler2DArray utilTex; -#endif /* __UTIL_TEX__ */ +#endif /* UTIL_TEX */ /* from Real-Time Area Lighting: a Journey from Research to Production * Stephen Hill and Eric Heitz */ |