2019-06-05 20:20:12 -04:00
|
|
|
#version 330
|
2019-01-14 22:32:53 -05:00
|
|
|
|
2020-04-23 21:00:52 -04:00
|
|
|
// pathfinder/shaders/fill.fs.glsl
|
2019-01-14 22:32:53 -05:00
|
|
|
//
|
2020-04-23 21:00:52 -04:00
|
|
|
// Copyright © 2020 The Pathfinder Project Developers.
|
2019-01-14 22:32:53 -05:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2020-04-23 21:00:52 -04:00
|
|
|
#extension GL_GOOGLE_include_directive : enable
|
|
|
|
|
2019-01-14 22:32:53 -05:00
|
|
|
precision highp float;
|
2020-05-08 19:59:01 -04:00
|
|
|
|
|
|
|
#ifdef GL_ES
|
2020-03-27 17:53:00 -04:00
|
|
|
precision highp sampler2D;
|
2020-05-08 19:59:01 -04:00
|
|
|
#endif
|
2019-01-14 22:32:53 -05:00
|
|
|
|
2020-06-23 15:27:04 -04:00
|
|
|
#include "fill_area.inc.glsl"
|
2020-04-23 21:00:52 -04:00
|
|
|
|
2019-01-14 22:32:53 -05:00
|
|
|
uniform sampler2D uAreaLUT;
|
|
|
|
|
|
|
|
in vec2 vFrom;
|
|
|
|
in vec2 vTo;
|
|
|
|
|
|
|
|
out vec4 oFragColor;
|
|
|
|
|
|
|
|
void main() {
|
2020-05-04 16:26:40 -04:00
|
|
|
oFragColor = computeCoverage(vFrom, vTo, uAreaLUT);
|
2019-01-14 22:32:53 -05:00
|
|
|
}
|