source: orange/orange/OrangeWidgets/Visualize Qt/value-lines.vs @ 8928:9a36fbc5a66e

Revision 8928:9a36fbc5a66e, 358 bytes checked in by matejd <matejd@…>, 3 years ago (diff)

Moved shaders to their own files; applied VertexBuffer several times; removed cones from LinProj3D

Line 
1attribute vec3 position;
2attribute vec3 color;
3attribute vec3 normal;
4
5varying vec4 var_color;
6
7uniform mat4 projection;
8uniform mat4 modelview;
9uniform float value_line_length;
10uniform vec3 plot_scale;
11
12void main(void)
13{
14    gl_Position = projection * modelview * vec4(position*plot_scale + normal*value_line_length, 1.);
15    var_color = vec4(color, 1.);
16}
Note: See TracBrowser for help on using the repository browser.