source: orange/orange/OrangeWidgets/Visualize Qt/sphere.vs @ 8928:9a36fbc5a66e

Revision 8928:9a36fbc5a66e, 308 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;
2varying float transparency;
3
4uniform mat4 projection;
5uniform mat4 modelview;
6uniform vec3 cam_position;
7
8void main(void)
9{
10    transparency = clamp(dot(normalize(cam_position-position), normalize(position)), 0., 1.);
11    gl_Position = projection * modelview * vec4(position, 1.);
12}
Note: See TracBrowser for help on using the repository browser.