// pathfinder/shaders/gles2/demo-3d-monument.vs.glsl // // Copyright (c) 2017 The Pathfinder Project Developers. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. precision mediump float; uniform mat4 uProjection; uniform mat4 uModelview; attribute vec3 aPosition; varying vec3 vPosition; void main() { vec4 position = uModelview * vec4(aPosition, 1.0); vPosition = position.xyz / position.w; gl_Position = uProjection * position; }