mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
22 lines
502 B
GLSL
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;
|
|
}
|