potree/resources/shader/flatShader.vs
mschuetz caa1371a25 ...
2014-02-08 09:49:23 +00:00

23 lines
435 B
GLSL

/**
* potree.js
* http://potree.org
*
* Copyright 2012, Markus Schütz
* Licensed under the GPL Version 2 or later.
* - http://potree.org/wp/?page_id=7
* - http://www.gnu.org/licenses/gpl-3.0.html
*
*/
precision highp float;
attribute vec3 aVertexPosition;
uniform mat4 uWorld;
uniform mat4 uView;
uniform mat4 uProj;
void main(void){
vec4 pos = uProj * uView * uWorld * vec4(aVertexPosition, 1.0);
gl_Position = pos;
}