options_120.vs 274 B

1234567891011
  1. #version 120
  2. uniform float zoom;
  3. uniform float point_size;
  4. uniform float near_plane_height;
  5. void main()
  6. {
  7. gl_Position = ftransform();
  8. gl_PointSize = (gl_Position.w == 1.0) ? zoom * near_plane_height * point_size : near_plane_height * point_size / gl_Position.w;
  9. }