diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-08-03 10:48:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-08-03 10:49:31 +0300 |
commit | fa0f938b111ffa281865613f80e425c27f3096b3 (patch) | |
tree | 1ad994affa9ab6b1c617d08d3a1df2afcbcb071c /source/blender/draw/engines/eevee/shaders/prepass_vert.glsl | |
parent | 3eab49dd365e2785abbc51b6f23ac6e05c8eedc7 (diff) |
Eevee: Fix assert with hair drawing
This remove unused clip_block when not needed and the useless ubo bind that
were put there for the sake of not crashing.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/prepass_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/prepass_vert.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/prepass_vert.glsl b/source/blender/draw/engines/eevee/shaders/prepass_vert.glsl index f2e9e7001e8..e110937c5aa 100644 --- a/source/blender/draw/engines/eevee/shaders/prepass_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/prepass_vert.glsl @@ -2,10 +2,12 @@ uniform mat4 ModelViewProjectionMatrix; uniform mat4 ModelMatrix; +#ifdef CLIP_PLANES /* keep in sync with DRWManager.view_data */ layout(std140) uniform clip_block { vec4 ClipPlanes[1]; }; +#endif #ifndef HAIR_SHADER in vec3 pos; |