diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-07-11 20:17:29 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-07-11 20:17:40 +0400 |
commit | 4097f9c3c48bcf2df25451c1003f43e8fc0154f3 (patch) | |
tree | 936ed2490debc16a1977ee91fde807e90e2abe3f /source/blender/bmesh/intern/bmesh_mesh.c | |
parent | 1aabbf8476a253b49437691c041bede34d8f4227 (diff) |
Another attempt for T40981, clipping border does not work with GLSL on
ATIs.
This is actually a test to see if this can be enabled on ATI cards.
According to various sources, newer ATI cards supporting GLSL 3.0
support gl_ClippingDistance in shaders, which is the forward compatible
way to do custom clipping.
This fix will bind 6 additional varying variables on ATIs, which may
lead to some shaders not compiling due to limiting out of those
variables, or to performance degradation. Also I do not have an ATI
handy to test.
Having those in mind, this commit may well be reverted later.
Clipping planes are usually 4 (6 is for cube clipping), but making
shaders depend on viewport state is really bad, and would lead to
recompilation, so I took the worst case here to avoid that.
Hopefully driver does some optimization there.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_mesh.c')
0 files changed, 0 insertions, 0 deletions