From 3e47253725bb8293c06f23733a61b3580e557199 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 8 Mar 2022 10:59:12 +0100 Subject: [PATCH] Follow-up of 66fa2b1e2685b9b01232b89488a97d6d413ea240 - Cleanup --- resources/shaders/mm_contour_attr.fs | 9 ++------- resources/shaders/mm_contour_attr.vs | 5 ----- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/resources/shaders/mm_contour_attr.fs b/resources/shaders/mm_contour_attr.fs index a8f0a05549..14477a59e6 100644 --- a/resources/shaders/mm_contour_attr.fs +++ b/resources/shaders/mm_contour_attr.fs @@ -1,17 +1,12 @@ #version 110 -//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -uniform vec4 uniform_color; -//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - const float EPSILON = 0.0001; +uniform vec4 uniform_color; + void main() { -//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ gl_FragColor = uniform_color; -// gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0); -//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // Values inside depth buffer for fragments of the contour of a selected area are offset // by small epsilon to solve z-fighting between painted triangles and contour lines. gl_FragDepth = gl_FragCoord.z - EPSILON; diff --git a/resources/shaders/mm_contour_attr.vs b/resources/shaders/mm_contour_attr.vs index 871fbb14b0..370eedb72d 100644 --- a/resources/shaders/mm_contour_attr.vs +++ b/resources/shaders/mm_contour_attr.vs @@ -1,16 +1,11 @@ #version 110 -//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ attribute vec3 v_position; uniform mat4 view_model_matrix; uniform mat4 projection_matrix; -//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ void main() { -//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ gl_Position = projection_matrix * view_model_matrix * vec4(v_position, 1.0); -// gl_Position = ftransform(); -//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ }