1$input a_position
2$output v_depth
3
4/*
5 * Copyright 2013-2014 Dario Manesku. All rights reserved.
6 * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
7 */
8
9#include "../common/common.sh"
10
11void main()
12{
13	gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0) );
14	v_depth = gl_Position.z * 0.5 + 0.5;
15}
16