Merge branch 'experimental' of http://gitlab.xn--jrvisalo-0za.fi/markus.jarvisalo/4kdemo into experimental
This commit is contained in:
@ -26,6 +26,8 @@ const char *__temp_cleaned_shader_glsl =
|
||||
"{"
|
||||
"float z=max(m-abs(v-y),0.);"
|
||||
"return max(v,y)+z*z*.25/m;"
|
||||
"float z=max(m-abs(v-y),0.);"
|
||||
"return max(v,y)+z*z*.25/m;"
|
||||
"}"
|
||||
"float f(vec2 v,int y)"
|
||||
"{"
|
||||
@ -170,11 +172,11 @@ const char *__temp_cleaned_shader_glsl =
|
||||
"float i=0.;"
|
||||
"for(int c=0;c<100;c++)"
|
||||
"{"
|
||||
"m=x(v+y*i,0);"
|
||||
"if(f==0&&m.z<.3)"
|
||||
"z+=.05/(1.+10.*pow(m.z,.5));"
|
||||
"i+=m.x;"
|
||||
"if(m.x<.001||i>4e2)"
|
||||
"m=x(v+y*i,0).x;"
|
||||
"if(f==0)"
|
||||
"z+=.05/(1.+10.*pow(x(v+y*i,0).z,.5));"
|
||||
"i+=m;"
|
||||
"if(m<1e-4||i>6e2)"
|
||||
"break;"
|
||||
"}"
|
||||
"return i;"
|
||||
|
||||
Reference in New Issue
Block a user