From dedf1c6faa5a42403a187788853d9ceb8149d5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 1 Feb 2025 16:15:34 +0100 Subject: [PATCH] Shaders: this thing can be flat-interpolated. The code comment says it's the same for all four points, so I suppose the qualifier was just forgotten. --- src/Magnum/Shaders/Line.frag | 2 +- src/Magnum/Shaders/Line.vert | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Shaders/Line.frag b/src/Magnum/Shaders/Line.frag index 18d42bd03..18ecb3f41 100644 --- a/src/Magnum/Shaders/Line.frag +++ b/src/Magnum/Shaders/Line.frag @@ -166,7 +166,7 @@ layout(std140 noperspective #endif in highp vec2 centerDistanceSigned; -in highp float halfSegmentLength; +flat in highp float halfSegmentLength; #ifdef CAN_USE_NOPERSPECTIVE noperspective #endif diff --git a/src/Magnum/Shaders/Line.vert b/src/Magnum/Shaders/Line.vert index e1c4d59d9..e6e5221f2 100644 --- a/src/Magnum/Shaders/Line.vert +++ b/src/Magnum/Shaders/Line.vert @@ -274,7 +274,7 @@ in highp mat4 instancedTransformationMatrix; noperspective #endif out highp vec2 centerDistanceSigned; -out highp float halfSegmentLength; +flat out highp float halfSegmentLength; #ifdef CAN_USE_NOPERSPECTIVE noperspective #endif