Browse Source

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.
pull/651/merge
Vladimír Vondruš 1 year ago
parent
commit
dedf1c6faa
  1. 2
      src/Magnum/Shaders/Line.frag
  2. 2
      src/Magnum/Shaders/Line.vert

2
src/Magnum/Shaders/Line.frag

@ -166,7 +166,7 @@ layout(std140
noperspective noperspective
#endif #endif
in highp vec2 centerDistanceSigned; in highp vec2 centerDistanceSigned;
in highp float halfSegmentLength; flat in highp float halfSegmentLength;
#ifdef CAN_USE_NOPERSPECTIVE #ifdef CAN_USE_NOPERSPECTIVE
noperspective noperspective
#endif #endif

2
src/Magnum/Shaders/Line.vert

@ -274,7 +274,7 @@ in highp mat4 instancedTransformationMatrix;
noperspective noperspective
#endif #endif
out highp vec2 centerDistanceSigned; out highp vec2 centerDistanceSigned;
out highp float halfSegmentLength; flat out highp float halfSegmentLength;
#ifdef CAN_USE_NOPERSPECTIVE #ifdef CAN_USE_NOPERSPECTIVE
noperspective noperspective
#endif #endif

Loading…
Cancel
Save