diff options
Diffstat (limited to 'system/shaders/GL/1.2/gl_shader_vert.glsl')
-rw-r--r-- | system/shaders/GL/1.2/gl_shader_vert.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/shaders/GL/1.2/gl_shader_vert.glsl b/system/shaders/GL/1.2/gl_shader_vert.glsl index 7c10b5f1bf..fef2d2d94e 100644 --- a/system/shaders/GL/1.2/gl_shader_vert.glsl +++ b/system/shaders/GL/1.2/gl_shader_vert.glsl @@ -29,11 +29,13 @@ varying vec4 m_cord1; varying vec4 m_colour; uniform mat4 m_proj; uniform mat4 m_model; +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_attrcord0; m_cord1 = m_attrcord1; |