source: orange/Orange/OrangeWidgets/Visualize Qt/sphere.vs @ 9671:a7b056375472

Revision 9671:a7b056375472, 308 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

RevLine 
[8928]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.