// 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. //! Renders the monument surface in the 3D demo. precision mediump float; /// The 3D projection matrix. uniform mat4 uProjection; /// The 3D modelview matrix. uniform mat4 uModelview; /// The 3D vertex position. attribute vec3 aPosition; /// The 3D vertex position. varying vec3 vPosition; void main() { vec4 position = uModelview * vec4(aPosition, 1.0); vPosition = position.xyz / position.w; gl_Position = uProjection * position; }