Felix Palmer | @pheeelicks | www.pheelicks.com
Felix Palmer | @pheeelicks | www.pheelicks.com
Piste (noun). A ski trail.
vec3 p = position;
vec2 textureCoord = positionToTexture( position );
p.z = texture2D( uElevation, textureCoord );
gl_Position = projectionMatrix * viewMatrix *
vec4( p, 1.0 );