mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-02 02:52:40 +00:00
GUI: new osc renderer, part 16
still bad
This commit is contained in:
parent
2c32ee47b0
commit
b4d505954c
1 changed files with 2 additions and 1 deletions
|
@ -107,12 +107,13 @@ const char* sh_oscRender_srcF=
|
|||
" vec2 tresh = vec2(1.0,1.0)/uResolution;\n"
|
||||
" float x = uv.x-uAdvance*uLineWidth*0.5;\n"
|
||||
" float xMax = uv.x+uAdvance*uLineWidth*0.5;\n"
|
||||
" float alpha = 0.0;\n"
|
||||
" float alphaX = 0.0;\n"
|
||||
" float valmax = -1024.0;\n"
|
||||
" float valmin = 1024.0;\n"
|
||||
" for (; x<xMax; x+=uAdvance) {\n"
|
||||
" float val=texture2D(oscVal,vec2(x,1.0)).x;\n"
|
||||
" alphaX+=0;\n"
|
||||
" alphaX+=0.0;\n"
|
||||
" if (val>valmax) valmax=val;\n"
|
||||
" if (val<valmin) valmin=val;\n"
|
||||
" }\n"
|
||||
|
|
Loading…
Reference in a new issue