Tech ENABLE_OPENGL_ES - Removed unneeded lines from shaders mm_contour and gouraud

This commit is contained in:
enricoturri1966 2022-04-08 08:17:48 +02:00
parent 575c9ae6fb
commit 8513e78759
3 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,4 @@
#version 100
#extension GL_NV_fragdepth : enable
precision highp float;

View File

@ -1,5 +1,4 @@
#version 100
#extension GL_NV_fragdepth : enable
precision highp float;

View File

@ -8,7 +8,7 @@ attribute vec3 v_position;
void main()
{
// Add small epsilon to z to solve z-fighting between painted triangles and contour lines.
// Add small epsilon to z to solve z-fighting
vec4 clip_position = projection_matrix * view_model_matrix * vec4(v_position, 1.0);
clip_position.z -= offset * abs(clip_position.w);
gl_Position = clip_position;