Browse Source

Shaders: `range` is reserved keyword in GLSL.

Neither desktop GL nor GLES on my NVidia complained. Just Chrome didn't
like it.
pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
ec467e4099
  1. 4
      src/Shaders/DistanceFieldVector.frag

4
src/Shaders/DistanceFieldVector.frag

@ -68,7 +68,7 @@ void main() {
/* Outline */
if(outlineRange.x > outlineRange.y) {
lowp float mid = (outlineRange.x + outlineRange.y)/2.0;
lowp float half = (outlineRange.x - outlineRange.y)/2.0;
fragmentColor += smoothstep(half+smoothness, half-smoothness, distance(mid, intensity))*outlineColor;
lowp float halfRange = (outlineRange.x - outlineRange.y)/2.0;
fragmentColor += smoothstep(halfRange+smoothness, halfRange-smoothness, distance(mid, intensity))*outlineColor;
}
}

Loading…
Cancel
Save