GUI: new osc renderer, part 13

much better but still not perfect
This commit is contained in:
tildearrow 2024-02-14 17:09:06 -05:00
parent 7d27d4938c
commit 9d4a900d81

View file

@ -120,11 +120,11 @@ const char* sh_oscRender_srcF=
" } else {\n" " } else {\n"
" alpha=fur_fragCoord.y-valmin*uResolution.y*0.5+uLineWidth*0.5;\n" " alpha=fur_fragCoord.y-valmin*uResolution.y*0.5+uLineWidth*0.5;\n"
" }\n" " }\n"
" alpha=clamp(alpha,0.0,1.0);\n"
" if (slope>1.0) {\n" " if (slope>1.0) {\n"
" gl_FragColor = vec4(uColor.xyz,uColor.w*clamp(alpha,0.0,1.0));\n" " alpha*=clamp(1.0-(1.0*abs(uv.y-val2)/abs(valmax-valmin)),0.0,1.0);\n"
" } else {\n"
" gl_FragColor = vec4(uColor.xyz,uColor.w*clamp(alpha,0.0,1.0));\n"
" }\n" " }\n"
" gl_FragColor = vec4(uColor.xyz,uColor.w*clamp(alpha,0.0,1.0));\n"
"}\n"; "}\n";
#else #else
const char* sh_wipe_srcV= const char* sh_wipe_srcV=