overte-thingvellir/interface/resources/shaders/metavoxel_point.vert
2013-12-12 15:14:19 -08:00

22 lines
502 B
GLSL

#version 120
//
// metavoxel_point.vert
// vertex shader
//
// Created by Andrzej Kapolka on 12/12/13.
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
//
uniform float pointScale;
void main(void) {
// pass along the vertex color
gl_FrontColor = gl_Color;
// extract the first four components of the vertex for position
gl_Position = gl_ModelViewProjectionMatrix * vec4(gl_Vertex.xyz, 1.0);
gl_PointSize = pointScale * gl_Vertex.w / gl_Position.w;
}