diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-04 13:12:58 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-04 13:12:58 +0300 |
commit | 28b597b6df46b6d2581d7948578922bb3566d242 (patch) | |
tree | 5b79613f8387d44ce66dc415b629b55906cabf93 /source/blender/draw/engines/eevee/shaders/ltc_lib.glsl | |
parent | 8d1e6d7833177023a6af0d040dabf4d5690b87db (diff) |
Eevee: Material code refactor.
Separate material handling inside another file.
Make use of enums to identify shader variations.
Group all 64*64 LUTs into one array texture.
Only update world probe if world changes.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/ltc_lib.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/ltc_lib.glsl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/ltc_lib.glsl b/source/blender/draw/engines/eevee/shaders/ltc_lib.glsl index 4b02e8c222f..cd16203703f 100644 --- a/source/blender/draw/engines/eevee/shaders/ltc_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/ltc_lib.glsl @@ -2,8 +2,10 @@ #define USE_LTC -uniform sampler2D ltcMat; -uniform sampler2D brdfLut; +#ifndef __UTIL_TEX__ +#define __UTIL_TEX__ +uniform sampler2DArray utilTex; +#endif /* __UTIL_TEX__ */ /* from Real-Time Area Lighting: a Journey from Research to Production * Stephen Hill and Eric Heitz */ |