2019-06-05 20:20:12 -04:00
|
|
|
#version {{version}}
|
2019-06-05 17:35:46 -04:00
|
|
|
// Automatically generated from files in pathfinder/shaders/. Do not edit!
|
|
|
|
|
2019-06-05 20:20:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
precision highp float;
|
|
|
|
|
|
|
|
uniform sampler2D uStencilTexture;
|
|
|
|
|
|
|
|
in vec2 vTexCoord;
|
|
|
|
in float vBackdrop;
|
|
|
|
in vec4 vColor;
|
|
|
|
|
|
|
|
out vec4 oFragColor;
|
|
|
|
|
|
|
|
void main(){
|
|
|
|
float coverage = abs(texture(uStencilTexture, vTexCoord). r + vBackdrop);
|
|
|
|
oFragColor = vec4(vColor . rgb, vColor . a * coverage);
|
|
|
|
}
|
|
|
|
|