source: orange/Orange/OrangeWidgets/VisualizeQt/sphere.vs @ 11474:df0622184ee6

Revision 11474:df0622184ee6, 308 bytes checked in by markotoplak, 12 months ago (diff)

Renamed Visualize Qt to VisualizeQt (so it can be loaded in new canvas).

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.