Skip to content
Snippets Groups Projects
Commit 78ee23a8 authored by Alexander Rose's avatar Alexander Rose
Browse files

tweaked point filled circle shader

parent 3d050a49
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,9 @@ void main(){ ...@@ -27,9 +27,9 @@ void main(){
#ifdef dPointFilledCircle #ifdef dPointFilledCircle
float dist = distance(gl_PointCoord, center); float dist = distance(gl_PointCoord, center);
float alpha = 1.0 - smoothstep(radius - uPointEdgeBleach * 2.0, radius, dist); float alpha = 1.0 - smoothstep(radius - uPointEdgeBleach, radius, dist);
if (alpha < 0.0001) discard;
gl_FragColor.a *= alpha; gl_FragColor.a *= alpha;
if (gl_FragColor.a < 0.1) discard;
#endif #endif
#pragma glslify: import('./chunks/apply-marker-color.glsl') #pragma glslify: import('./chunks/apply-marker-color.glsl')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment