CGII/framework/shader/plot/glsl/plot2d_point.glvs

9 lines
217 B
Plaintext
Raw Normal View History

2018-05-17 14:01:02 +00:00
#version 150 compatibility
uniform float plot_scale;
void main()
{
// transform vertex to clip space
gl_Position = gl_ModelViewProjectionMatrix * vec4(gl_Vertex.x,gl_Vertex.y,plot_scale*gl_Vertex.z,gl_Vertex.w);
}