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

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

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

RevLine 
[8928]1attribute vec3 position;
2attribute vec3 normal;
3
[9078]4varying vec4 out_color;
[8928]5
6uniform mat4 projection;
7uniform mat4 modelview;
8
[9078]9const vec3 light_direction = vec3(-0.8305, 0.4983, 0.2491);
[8928]10
11void main(void)
12{
13    gl_Position = projection * modelview * vec4(position, 1.);
14    float diffuse = clamp(dot(light_direction, normalize((modelview * vec4(normal, 0.)).xyz)), 0., 1.);
[9078]15    out_color = vec4(vec3(1., 1., 1.) * diffuse + 0.1, 1.);
[8928]16}
Note: See TracBrowser for help on using the repository browser.