Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2015-11-23 08:08:09 +0300
committerMike Erwin <significant.bit@gmail.com>2015-11-23 08:08:09 +0300
commit076e2ff2aabd3374a6cb29ed543b28d1e9d0525d (patch)
tree7aaa54b17f9ee56c1fffee06d11ca7dc496f5c62 /source/blender/gpu/shaders/gpu_shader_geometry.glsl
parent05ffe2d174115b9f9fc2322dbafcfb4543d3809d (diff)
OpenGL: update geometry shaders, fixes T46838
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_geometry.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_geometry.glsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_geometry.glsl b/source/blender/gpu/shaders/gpu_shader_geometry.glsl
index a0ae96a1f72..2e4d8f9e8a8 100644
--- a/source/blender/gpu/shaders/gpu_shader_geometry.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_geometry.glsl
@@ -1,13 +1,19 @@
uniform int PrimitiveIdBase;
uniform int osd_active_uv_offset;
-varying vec3 varnormal;
-varying vec3 varposition;
+#if __VERSION__ >= 150
+ layout(lines_adjacency) in;
+ layout(triangle_strip, max_vertices = 4) out;
+#endif
in block {
VertexData v;
} inpt[4];
+/* compatibility */
+out vec3 varnormal;
+out vec3 varposition;
+
uniform bool osd_flat_shading;
uniform int osd_fvar_count;