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;
|
2020-05-08 19:59:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-05 20:20:12 -04:00
|
|
|
|
|
|
|
uniform sampler2D uTexture;
|
|
|
|
uniform vec4 uColor;
|
|
|
|
|
|
|
|
in vec2 vTexCoord;
|
|
|
|
|
|
|
|
out vec4 oFragColor;
|
|
|
|
|
|
|
|
void main(){
|
|
|
|
float alpha = texture(uTexture, vTexCoord). r * uColor . a;
|
|
|
|
oFragColor = alpha * vec4(uColor . rgb, 1.0);
|
|
|
|
}
|
|
|
|
|