diff options
Diffstat (limited to 'system/shaders/GLES/2.0/gles_shader.vert')
-rw-r--r-- | system/shaders/GLES/2.0/gles_shader.vert | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/shaders/GLES/2.0/gles_shader.vert b/system/shaders/GLES/2.0/gles_shader.vert index 890acbbb81..17b4ad7b48 100644 --- a/system/shaders/GLES/2.0/gles_shader.vert +++ b/system/shaders/GLES/2.0/gles_shader.vert @@ -30,11 +30,13 @@ varying lowp vec4 m_colour; uniform mat4 m_proj; uniform mat4 m_model; uniform mat4 m_coord0Matrix; +uniform float m_depth; void main () { mat4 mvp = m_proj * m_model; gl_Position = mvp * m_attrpos; + gl_Position.z = m_depth * gl_Position.w; m_colour = m_attrcol; m_cord0 = m_coord0Matrix * m_attrcord0; m_cord1 = m_attrcord1; |