diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-01-24 17:41:07 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-01-24 17:42:20 +0300 |
commit | 95db2e87498131477a2fbfd9d6bb4fdac2af7961 (patch) | |
tree | acc8acd107c3db319e4315cd2215c84ec2651453 /source/blender/draw | |
parent | 35f0a59df68074ac7031ee9ae7dff8912bf204d9 (diff) |
Fix GPU linking Error.
"The geometry shader uses varying _I;gl_PerVertex;gl_ClipDistance, but previous shader does not write to it."
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl b/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl index cb07c535200..1ae204de60d 100644 --- a/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl +++ b/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl @@ -43,6 +43,10 @@ void main() gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0); facing_g = normalize(NormalMatrix * nor).z; + +#ifdef USE_WORLD_CLIP_PLANES + world_clip_planes_calc_clip_distance((ModelMatrix * vec4(pos, 1.0)).xyz); +#endif } #else /* SELECT_EDGES */ |