diff --git a/Checker/main.fs b/Checker/main.fs index b28ee249..3541d360 100644 --- a/Checker/main.fs +++ b/Checker/main.fs @@ -5,6 +5,7 @@ open System.Diagnostics open System.IO open Argu +open System.Text.RegularExpressions type CliArguments = | Update_Golden @@ -74,8 +75,14 @@ let testPerformance files = let time = stopwatch.Elapsed printfn "%i files minified in %f seconds." files.Length time.TotalSeconds +// Generated files may contain the Shader Minifier version. +// Ignore version changes in the tests. +let versionRegex = new Regex(@"\bShader Minifier \d(\.\d+)+"); + let runCommand argv = - let cleanString (s: string) = s.Replace("\r\n", "\n").Trim() + let cleanString (s: string) = + let s = s.Replace("\r\n", "\n").Trim() + versionRegex.Replace(s, "") Options.init argv let expected = try File.ReadAllText options.outputName |> cleanString diff --git a/src/ast.fs b/src/ast.fs index 2ddfbe7b..30f7d6eb 100644 --- a/src/ast.fs +++ b/src/ast.fs @@ -104,6 +104,7 @@ and TopLevel = | Function of FunctionType * Stmt | TLDecl of Decl | TypeDecl of TypeSpec // structs + | Precision of Type let makeType name tyQ sizes = {Type.name=name; typeQ=tyQ; arraySizes=sizes} let makeDecl name size sem init = {name=name; size=size; semantics=sem; init=init} diff --git a/src/options.fs b/src/options.fs index 5d616ab4..cae4e1b5 100644 --- a/src/options.fs +++ b/src/options.fs @@ -3,7 +3,7 @@ open System.IO open Argu -let version = "1.3" // Shader Minifier version +let version = "1.3.1" // Shader Minifier version let debugMode = false type OutputFormat = diff --git a/src/parse.fs b/src/parse.fs index 709af878..8182ac5f 100644 --- a/src/parse.fs +++ b/src/parse.fs @@ -335,7 +335,7 @@ module private ParseImpl = macro |>> Ast.Verbatim attribute |>> Ast.Verbatim attempt ((declaration .>> ch ';') |>> Ast.Decl) - simpleStatement .>> ch ';'] "instruction" + simpleStatement .>> ch ';'] "statement" // e.g. "int foo(float a[], out int b) : color" let functionHeader = @@ -347,6 +347,9 @@ module private ParseImpl = let pfunction = pipe2 functionHeader block (fun head body -> Ast.Function(head, body)) + let precision = + keyword "precision" >>. (specifiedType |>> Ast.Precision) .>> ch ';' + let toplevel = let decl = declaration .>> ch ';' let item = choice [ @@ -356,6 +359,7 @@ module private ParseImpl = attempt decl |>> Ast.TLDecl structDecl attempt interfaceBlock + precision pfunction ] let forwardDecl = functionHeader .>> ch ';' |>> (fun _ -> options.reorderFunctions <- true) diff --git a/src/printer.fs b/src/printer.fs index 82bb020e..74d48a0b 100644 --- a/src/printer.fs +++ b/src/printer.fs @@ -261,6 +261,7 @@ module private PrinterImpl = | Function (fct, Block []) -> out "%s%s%s{}" (nl 0) (funToS fct) (nl 0) | Function (fct, (Block _ as body)) -> out "%s%s%s" (nl 0) (funToS fct) (stmtToS 0 body) | Function (fct, body) -> out "%s%s%s{%s%s}" (nl 0) (funToS fct) (nl 0) (stmtToS 1 body) (nl 0) + | Precision ty -> out "precision %s;" (typeToS ty); | TLDecl (_, []) -> "" | TLDecl decl -> out "%s%s;" (nl 0) (declToS decl) | TypeDecl t -> out "%s;" (typeSpecToS t) diff --git a/src/rewriter.fs b/src/rewriter.fs index bc656909..e91b0135 100644 --- a/src/rewriter.fs +++ b/src/rewriter.fs @@ -78,7 +78,7 @@ let private inlineFn (declArgs:Decl list) passedArgs bodyExpr = /// Expression that doesn't need parentheses around it. let (|NoParen|_|) = function - | Int _ | Float _ | Dot _ | Var _ | FunCall _ | Subscript _ as x -> Some x + | Int _ | Float _ | Dot _ | Var _ | FunCall (Var _, _) | Subscript _ as x -> Some x | _ -> None let rec private simplifyExpr (didInline: bool ref) env = function @@ -108,7 +108,7 @@ let rec private simplifyExpr (didInline: bool ref) env = function | FunCall(Op "-", [x; Int (i, s)]) when i < 0 -> FunCall(Op "+", [x; Int (-i, s)]) |> env.fExpr env - // Swap operands to get rid of parenthese + // Swap operands to get rid of parentheses // x*(y*z) -> y*z*x | FunCall(Op "*", [NoParen x; FunCall(Op "*", [y; z])]) -> FunCall(Op "*", [FunCall(Op "*", [y; z]); x]) |> env.fExpr env @@ -117,10 +117,10 @@ let rec private simplifyExpr (didInline: bool ref) env = function | FunCall(Op "+", [NoParen x; FunCall(Op ("+"|"-") as op, [y; z])]) -> FunCall(Op "+", [FunCall(op, [y; z]); x]) |> env.fExpr env // x-(y+z) -> x-y-z - | FunCall(Op "-", [NoParen x; FunCall(Op "+", [y; z])]) -> + | FunCall(Op "-", [x; FunCall(Op "+", [y; z])]) -> FunCall(Op "-", [FunCall(Op "-", [x; y]); z]) |> env.fExpr env // x-(y-z) -> x-y+z - | FunCall(Op "-", [NoParen x; FunCall(Op "-", [y; z])]) -> + | FunCall(Op "-", [x; FunCall(Op "-", [y; z])]) -> FunCall(Op "+", [FunCall(Op "-", [x; y]); z]) |> env.fExpr env // Boolean simplifications (let's ignore the suffix) @@ -369,7 +369,7 @@ let markLValues li = | _ -> e | e -> e let assignOps = Set.ofList ["="; "+="; "-="; "*="; "/="; "%="; - "<<="; ">>="; "&="; "^="; "|="; "_++"; "_--"; "$++"; "$--"] + "<<="; ">>="; "&="; "^="; "|="; "++"; "--"; "$++"; "$--"] let findWrites env = function | FunCall(Op o, e::args) when Set.contains o assignOps -> let newEnv = {env with fExpr = markVars} diff --git a/tests/commands.txt b/tests/commands.txt index 2e3e8e05..4527bf0a 100644 --- a/tests/commands.txt +++ b/tests/commands.txt @@ -14,6 +14,7 @@ --no-renaming --no-inlining --format c-array -o tests/unit/minus-zero.expected tests/unit/minus-zero.frag --no-renaming --format c-array --no-inlining -o tests/unit/float.frag.expected tests/unit/float.frag --no-renaming --format indented --no-inlining -o tests/unit/nested_if.frag.expected tests/unit/nested_if.frag +--format indented -o tests/unit/precision.frag.expected tests/unit/precision.frag # Inlining unit tests diff --git a/tests/real/chocolux.frag.expected b/tests/real/chocolux.frag.expected deleted file mode 100644 index 442752f3..00000000 --- a/tests/real/chocolux.frag.expected +++ /dev/null @@ -1,50 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef CHOCOLUX_FRAG_EXPECTED_ -# define CHOCOLUX_FRAG_EXPECTED_ -# define VAR_RESOLUTION "k" -# define VAR_TIME "v" - -const char *chocolux_frag = - "uniform vec2 k;" - "uniform float v;" - "float s(vec3 y)" - "{" - "float f=distance(y,vec3(cos(v)+sin(v*.2),.3,2.+cos(v*.5)*.5));" - "f*=distance(y,vec3(-cos(v*.7),.3,2.+sin(v*.5)));" - "f*=distance(y,vec3(-sin(v*.2)*.5,sin(v),2.));" - "f*=cos(y.y)*cos(y.x)-.1-cos(y.z*7.+v*7.)*cos(y.x*3.)*cos(y.y*4.)*.1;" - "return f;" - "}" - "void main()" - "{" - "vec2 y=-1.+2.*gl_FragCoord.xy/k.xy;" - "vec3 f=vec3(y.x,y.y*1.25-.3,0.),c=vec3(y.x+cos(v)*.3,y.y,1.)/64.;" - "vec4 d=vec4(0.);" - "float x=0.;" - "for(int r=0;r<75;r++)" - "{" - "if(s(f+c*x)<.4)" - "{" - "x-=5.;" - "for(int m=0;m<5;m++)" - "{" - "if(s(f+c*x)<.4)" - "break;" - "x+=1.;" - "}" - "vec3 m=vec3(.01,0.,0.),i=vec3(0.);" - "i.x=s(f+c*x)-s(vec3(f+c*x+m.xyy));" - "i.y=s(f+c*x)-s(vec3(f+c*x+m.yxy));" - "i.z=s(f+c*x)-s(vec3(f+c*x+m.yyx));" - "i=normalize(i);" - "d+=max(dot(vec3(0.,0.,-.5),i),0.)+max(dot(vec3(0.,-.5,.5),i),0.)*.5;" - "break;" - "}" - "x+=5.;" - "}" - "gl_FragColor=d+vec4(.1,.2,.5,1.)*(x*.025);" - "}"; - -#endif // CHOCOLUX_FRAG_EXPECTED_ diff --git a/tests/real/clod.frag.expected b/tests/real/clod.frag.expected deleted file mode 100644 index 2c94ea68..00000000 --- a/tests/real/clod.frag.expected +++ /dev/null @@ -1,53 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef CLOD_FRAG_EXPECTED_ -# define CLOD_FRAG_EXPECTED_ -# define VAR_RESOLUTION "v" -# define VAR_TEX0 "y" -# define VAR_TEX1 "c" -# define VAR_TEX2 "n" -# define VAR_TEX3 "e" -# define VAR_TIME "s" - -const char *clod_frag = - "uniform vec2 v;" - "uniform float s;" - "uniform sampler2D y,c,n,e;" - "float m(vec3 v)" - "{" - "float s=(sin(v.x)+v.y*.25)*.35;" - "v=vec3(cos(s)*v.x-sin(s)*v.y,sin(s)*v.x+cos(s)*v.y,v.z);" - "return dot(cos(v)*cos(v),vec3(1))-1.2;" - "}" - "vec3 m(vec3 v,vec3 s)" - "{" - "float y=0.,c,e;" - "for(int f=0;f<75;f++)" - "{" - "if(m(v+s*y)<0.)" - "{" - "c=y-.125;" - "e=y;" - "for(int r=0;r<10;r++)" - "{" - "y=(c+e)*.5;" - "if(m(v+s*y)<0.)" - "e=y;" - "else" - " c=y;" - "}" - "vec3 r=vec3(.1,0.,0.),n=v+s*y,i=-normalize(vec3(m(n+r),m(n+r.yxy),m(n+r.yyx))+vec3(sin(n*75.))*.01);" - "return vec3(mix((max(-dot(i,vec3(.577)),0.)+.125*max(-dot(i,vec3(-.707,-.707,0)),0.))*(mod(length(n.xy)*20.,2.)<1.?vec3(.71,.85,.25):vec3(.79,.93,.4)),vec3(.93,.94,.85),vec3(pow(y/9.,5.))));" - "}" - "y+=.125;" - "}" - "return vec3(.93,.94,.85);" - "}" - "void main()" - "{" - "vec2 n=-1.+2.*gl_FragCoord.xy/v.xy;" - "gl_FragColor=vec4(m(vec3(sin(s*1.5)*.5,cos(s)*.5,s),normalize(vec3(n.xy,1.))),1.);" - "}"; - -#endif // CLOD_FRAG_EXPECTED_ diff --git a/tests/real/deform.frag.expected b/tests/real/deform.frag.expected deleted file mode 100644 index 181cf92e..00000000 --- a/tests/real/deform.frag.expected +++ /dev/null @@ -1,31 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef DEFORM_FRAG_EXPECTED_ -# define DEFORM_FRAG_EXPECTED_ -# define VAR_MOUSE "f" -# define VAR_RESOLUTION "v" -# define VAR_TEX0 "d" -# define VAR_TEX1 "o" -# define VAR_TEX2 "r" -# define VAR_TEX3 "z" -# define VAR_TIME "y" - -const char *deform_frag = - "uniform float y;" - "uniform vec2 v;" - "uniform vec4 f;" - "uniform sampler2D d,o,r,z;" - "void main()" - "{" - "vec2 x=-1.+2.*gl_FragCoord.xy/v.xy,r=-1.+2.*f.xy/v.xy;" - "float m=atan(x.y-r.y,x.x-r.x),s=sqrt(dot(x-r,x-r)),o=atan(x.y+r.y,x.x+r.x),z=sqrt(dot(x+r,x+r));" - "vec2 u;" - "u.x=.2*y+(s-z)*.25;" - "u.y=sin(2.*(m-o));" - "float a=s*z*.8;" - "vec3 t=texture2D(d,u).xyz;" - "gl_FragColor=vec4(t/(.1+a),1.);" - "}"; - -#endif // DEFORM_FRAG_EXPECTED_ diff --git a/tests/real/disco.frag.expected b/tests/real/disco.frag.expected deleted file mode 100644 index 6ccf7514..00000000 --- a/tests/real/disco.frag.expected +++ /dev/null @@ -1,49 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef DISCO_FRAG_EXPECTED_ -# define DISCO_FRAG_EXPECTED_ -# define VAR_RESOLUTION "s" -# define VAR_TEX0 "f" -# define VAR_TEX1 "o" -# define VAR_TEX2 "c" -# define VAR_TEX3 "y" -# define VAR_TIME "v" - -const char *disco_frag = - "uniform vec2 s;" - "uniform float v;" - "uniform sampler2D f,o,c,y;" - "vec4 n(vec2 s,float f)" - "{" - "float c=3.1415,y=v*sign(f),a=s.x*320.*.0065*f,i=s.y*240.*.006*f,o=sqrt(a*a+i*i);" - "if(o>1.)" - "return vec4(0.);" - "else" - "{" - "float e=-.4*sign(f)+sin(y*.05),n=sqrt(1.-a*a-i*i),r=i*sin(e)-n*cos(e);" - "i=i*cos(e)+n*sin(e);" - "n=acos(i);" - "e=acos(a/sin(n))/(2.*c)*120.*sign(r)-y;" - "n=n*60./c;" - "r=cos(floor(n/c));" - "o=pow(abs(cos(e)*sin(n)),.2)*.1/(r+sin(float(int((e+c/2.)/c))+y*.6+cos(r*25.)))*pow(1.-o,.9);" - "vec4 m;" - "if(o<0.)" - "m=vec4(-o/2.*abs(cos(y*.1)),0.,-o*2.*abs(sin(y*.04)),1.);" - "else" - " m=vec4(o,o*2.,o*2.,1.);" - "return m;" - "}" - "}" - "void main()" - "{" - "vec2 f=-1.+2.*gl_FragCoord.xy/s.xy;" - "vec4 e=vec4(0.);" - "for(int i=80;i>0;i--)" - "e+=n(f,1.-float(i)/80.)*(.008-float(i)*5e-05);" - "vec4 i=n(f,1.);" - "gl_FragColor=(i.w==0.?n(f,-.2)*.02:i)+sqrt(e);" - "}"; - -#endif // DISCO_FRAG_EXPECTED_ diff --git a/tests/real/extatique/blit.frag.expected b/tests/real/extatique/blit.frag.expected deleted file mode 100644 index 182ff012..00000000 --- a/tests/real/extatique/blit.frag.expected +++ /dev/null @@ -1,16 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLIT_FRAG_EXPECTED_ -# define BLIT_FRAG_EXPECTED_ -# define VAR_TEX "m" - -const char *blit_frag = - "uniform sampler2D m;" - "void main()" - "{" - "vec2 r=gl_TexCoord[0].xy;" - "gl_FragColor=gl_Color*texture2D(m,r);" - "}"; - -#endif // BLIT_FRAG_EXPECTED_ diff --git a/tests/real/extatique/blit.vs.expected b/tests/real/extatique/blit.vs.expected deleted file mode 100644 index a6f8a1ce..00000000 --- a/tests/real/extatique/blit.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLIT_VS_EXPECTED_ -# define BLIT_VS_EXPECTED_ - -const char *blit_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // BLIT_VS_EXPECTED_ diff --git a/tests/real/extatique/blit2.frag.expected b/tests/real/extatique/blit2.frag.expected deleted file mode 100644 index 3ee9bc8a..00000000 --- a/tests/real/extatique/blit2.frag.expected +++ /dev/null @@ -1,20 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLIT2_FRAG_EXPECTED_ -# define BLIT2_FRAG_EXPECTED_ -# define VAR_TEX1 "m" -# define VAR_TEX1AMOUNT "f" -# define VAR_TEX2 "y" -# define VAR_TEX2AMOUNT "e" - -const char *blit2_frag = - "uniform sampler2D m,y;" - "uniform float f,e;" - "void main()" - "{" - "vec2 r=gl_TexCoord[0].xy;" - "gl_FragColor=vec4(f)*texture2D(m,r)+vec4(e)*texture2D(y,r);" - "}"; - -#endif // BLIT2_FRAG_EXPECTED_ diff --git a/tests/real/extatique/blit2.vs.expected b/tests/real/extatique/blit2.vs.expected deleted file mode 100644 index dc7c69cd..00000000 --- a/tests/real/extatique/blit2.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLIT2_VS_EXPECTED_ -# define BLIT2_VS_EXPECTED_ - -const char *blit2_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_Position=ftransform();" - "}"; - -#endif // BLIT2_VS_EXPECTED_ diff --git a/tests/real/extatique/blitcorner.frag.expected b/tests/real/extatique/blitcorner.frag.expected deleted file mode 100644 index ad8dde4b..00000000 --- a/tests/real/extatique/blitcorner.frag.expected +++ /dev/null @@ -1,20 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLITCORNER_FRAG_EXPECTED_ -# define BLITCORNER_FRAG_EXPECTED_ -# define VAR_FACTOR "r" -# define VAR_RATIO "f" -# define VAR_TEX "m" - -const char *blitcorner_frag = - "uniform sampler2D m;" - "uniform float f,r;" - "void main()" - "{" - "vec2 s=gl_TexCoord[0].xy,y=(s-vec2(.5,.5))*vec2(1.,f);" - "vec4 v=vec4(max(0.,1.-r*dot(y,y)));" - "gl_FragColor=gl_Color*v*texture2D(m,s);" - "}"; - -#endif // BLITCORNER_FRAG_EXPECTED_ diff --git a/tests/real/extatique/blitcorner.vs.expected b/tests/real/extatique/blitcorner.vs.expected deleted file mode 100644 index 67a59f9f..00000000 --- a/tests/real/extatique/blitcorner.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLITCORNER_VS_EXPECTED_ -# define BLITCORNER_VS_EXPECTED_ - -const char *blitcorner_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // BLITCORNER_VS_EXPECTED_ diff --git a/tests/real/extatique/blitgirl.frag.expected b/tests/real/extatique/blitgirl.frag.expected deleted file mode 100644 index d39f4531..00000000 --- a/tests/real/extatique/blitgirl.frag.expected +++ /dev/null @@ -1,22 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLITGIRL_FRAG_EXPECTED_ -# define BLITGIRL_FRAG_EXPECTED_ -# define VAR_BORDER "s" -# define VAR_NOISE "o" -# define VAR_SIZE "t" -# define VAR_TEX "x" - -const char *blitgirl_frag = - "uniform sampler2D x,o;" - "uniform vec2 t;" - "uniform float s;" - "void main()" - "{" - "vec2 y=gl_TexCoord[0].xy,r=y*t;" - "float o=smoothstep(0.,s,r.x)-smoothstep(t.x-s,t.x,r.x),e=smoothstep(0.,s,r.y)-smoothstep(t.y-s,t.y,r.y),z=s*3.,m=smoothstep(0.,z,r.x)-smoothstep(t.x-z,t.x,r.x),p=smoothstep(0.,z,r.y)-smoothstep(t.y-z,t.y,r.y),g=texture2D(g,r).x,h=max(0.,o*e-g*(1.-m*p));" - "gl_FragColor=vec4(gl_Color.xyz,h)*texture2D(x,y);" - "}"; - -#endif // BLITGIRL_FRAG_EXPECTED_ diff --git a/tests/real/extatique/blitgirl.vs.expected b/tests/real/extatique/blitgirl.vs.expected deleted file mode 100644 index 71314025..00000000 --- a/tests/real/extatique/blitgirl.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLITGIRL_VS_EXPECTED_ -# define BLITGIRL_VS_EXPECTED_ - -const char *blitgirl_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // BLITGIRL_VS_EXPECTED_ diff --git a/tests/real/extatique/blitsquare.frag.expected b/tests/real/extatique/blitsquare.frag.expected deleted file mode 100644 index 22267788..00000000 --- a/tests/real/extatique/blitsquare.frag.expected +++ /dev/null @@ -1,21 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLITSQUARE_FRAG_EXPECTED_ -# define BLITSQUARE_FRAG_EXPECTED_ -# define VAR_BORDER "s" -# define VAR_SIZE "t" -# define VAR_TEX "y" - -const char *blitsquare_frag = - "uniform sampler2D y;" - "uniform vec2 t;" - "uniform float s;" - "void main()" - "{" - "vec2 x=gl_TexCoord[0].xy,r=x*t;" - "float v=smoothstep(0.,s,r.x)-smoothstep(t.x-s,t.x,r.x),o=smoothstep(0.,s,r.y)-smoothstep(t.y-s,t.y,r.y),e=v*o;" - "gl_FragColor=vec4(gl_Color.xyz,e)*texture2D(y,x);" - "}"; - -#endif // BLITSQUARE_FRAG_EXPECTED_ diff --git a/tests/real/extatique/blitsquare.vs.expected b/tests/real/extatique/blitsquare.vs.expected deleted file mode 100644 index b6a835a6..00000000 --- a/tests/real/extatique/blitsquare.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLITSQUARE_VS_EXPECTED_ -# define BLITSQUARE_VS_EXPECTED_ - -const char *blitsquare_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // BLITSQUARE_VS_EXPECTED_ diff --git a/tests/real/extatique/distort.frag.expected b/tests/real/extatique/distort.frag.expected deleted file mode 100644 index 5143791c..00000000 --- a/tests/real/extatique/distort.frag.expected +++ /dev/null @@ -1,24 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef DISTORT_FRAG_EXPECTED_ -# define DISTORT_FRAG_EXPECTED_ -# define VAR_AMOUNT "m" -# define VAR_COLORSEP "e" -# define VAR_GLOW "l" -# define VAR_TEX "v" - -const char *distort_frag = - "uniform sampler2D v;" - "uniform float m,e;" - "uniform vec4 l;" - "void main()" - "{" - "vec2 r=gl_TexCoord[0].xy-vec2(.5,.5),t=r+vec2(e,0.),o=r-vec2(e,0.);" - "float f=m/(1.+length(r*5.)),c=cos(f),a=sin(f);" - "mat2 s=mat2(c,-a,a,c);" - "vec4 i=vec4(1.,.5,0.,.5)*texture2D(v,vec2(.5)+s*t),n=vec4(0.,.5,1.,.5)*texture2D(v,vec2(.5)+s*o);" - "gl_FragColor=gl_Color*(i+n)+l;" - "}"; - -#endif // DISTORT_FRAG_EXPECTED_ diff --git a/tests/real/extatique/distort.vs.expected b/tests/real/extatique/distort.vs.expected deleted file mode 100644 index d98d255b..00000000 --- a/tests/real/extatique/distort.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef DISTORT_VS_EXPECTED_ -# define DISTORT_VS_EXPECTED_ - -const char *distort_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // DISTORT_VS_EXPECTED_ diff --git a/tests/real/extatique/final.frag.expected b/tests/real/extatique/final.frag.expected deleted file mode 100644 index 31474749..00000000 --- a/tests/real/extatique/final.frag.expected +++ /dev/null @@ -1,24 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef FINAL_FRAG_EXPECTED_ -# define FINAL_FRAG_EXPECTED_ -# define VAR_BLURAMOUNT "z" -# define VAR_BLURTYPE "m" -# define VAR_GAMMARAMP "s" -# define VAR_INVHEIGHT "e" -# define VAR_INVWIDTH "y" -# define VAR_TEX "v" - -const char *final_frag = - "uniform sampler2D v;" - "uniform sampler3D s;" - "uniform float m,z,e,y;" - "void main()" - "{" - "vec2 e=gl_TexCoord[0].xy;" - "vec4 r=(texture2DLod(v,e,7.)+texture2DLod(v,e,6.)+texture2DLod(v,e,5.)+texture2DLod(v,e,4.)+texture2DLod(v,e,3.)+texture2DLod(v,e,2.)+texture2DLod(v,e,1.))*vec4(.142857),y=texture2D(v,e),t=vec4(1.)-(vec4(1.)-r)*(vec4(1.)-y),o=t*mix(t,vec4(1.),m),x=mix(y,o,z);" - "gl_FragColor=texture3D(s,x.xyz);" - "}"; - -#endif // FINAL_FRAG_EXPECTED_ diff --git a/tests/real/extatique/final.vs.expected b/tests/real/extatique/final.vs.expected deleted file mode 100644 index c5fe808c..00000000 --- a/tests/real/extatique/final.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef FINAL_VS_EXPECTED_ -# define FINAL_VS_EXPECTED_ - -const char *final_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_Position=gl_Vertex;" - "}"; - -#endif // FINAL_VS_EXPECTED_ diff --git a/tests/real/extatique/font.frag.expected b/tests/real/extatique/font.frag.expected deleted file mode 100644 index c584adcb..00000000 --- a/tests/real/extatique/font.frag.expected +++ /dev/null @@ -1,18 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef FONT_FRAG_EXPECTED_ -# define FONT_FRAG_EXPECTED_ -# define VAR_FILL "r" -# define VAR_TEX "m" - -const char *font_frag = - "uniform sampler2D m,r;" - "void main()" - "{" - "vec2 s=gl_TexCoord[0].xy;" - "vec4 t=texture2D(m,s),g=texture2D(r,s*3.);" - "gl_FragColor=t*g*gl_Color;" - "}"; - -#endif // FONT_FRAG_EXPECTED_ diff --git a/tests/real/extatique/font.vs.expected b/tests/real/extatique/font.vs.expected deleted file mode 100644 index 631f9172..00000000 --- a/tests/real/extatique/font.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef FONT_VS_EXPECTED_ -# define FONT_VS_EXPECTED_ - -const char *font_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_Position=ftransform(),gl_FrontColor=gl_Color;" - "}"; - -#endif // FONT_VS_EXPECTED_ diff --git a/tests/real/extatique/glow.frag.expected b/tests/real/extatique/glow.frag.expected deleted file mode 100644 index b1467b52..00000000 --- a/tests/real/extatique/glow.frag.expected +++ /dev/null @@ -1,17 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef GLOW_FRAG_EXPECTED_ -# define GLOW_FRAG_EXPECTED_ -# define VAR_TEX "m" - -const char *glow_frag = - "uniform sampler1D m;" - "void main()" - "{" - "vec2 r=gl_TexCoord[0].xy;" - "float t=length(r)/2.04;" - "gl_FragColor=gl_Color*vec4(1.,1.,1.,texture1D(m,t));" - "}"; - -#endif // GLOW_FRAG_EXPECTED_ diff --git a/tests/real/extatique/glow.vs.expected b/tests/real/extatique/glow.vs.expected deleted file mode 100644 index 05950a34..00000000 --- a/tests/real/extatique/glow.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef GLOW_VS_EXPECTED_ -# define GLOW_VS_EXPECTED_ - -const char *glow_vs = - "void main()" - "{" - "gl_FrontColor=gl_Color,gl_TexCoord[0]=gl_MultiTexCoord0,gl_Position=ftransform();" - "}"; - -#endif // GLOW_VS_EXPECTED_ diff --git a/tests/real/extatique/graindo12.frag.expected b/tests/real/extatique/graindo12.frag.expected deleted file mode 100644 index fd18b2e0..00000000 --- a/tests/real/extatique/graindo12.frag.expected +++ /dev/null @@ -1,60 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef GRAINDO12_FRAG_EXPECTED_ -# define GRAINDO12_FRAG_EXPECTED_ -# define VAR_AMBIENTCOLOR "a" -# define VAR_DISTRAMP "f" -# define VAR_MATCOLOR "s" -# define VAR_PARAM1 "v" -# define VAR_TIME "c" - -const char *graindo12_frag = - "uniform float c,v;" - "uniform sampler1D f;" - "uniform vec3 s,a;" - "float t(float v)" - "{" - "return texture1D(f,abs(v)*.125).x;" - "}" - "float n(float v)" - "{" - "return pow(.5,abs(v));" - "}" - "mat3 n(float v,float f,float m)" - "{" - "float c=sin(v),a=sin(f),t=sin(m),s=cos(v),l=cos(f),x=cos(m),r=l*x,z=s*a*x+c*t,n=s*t-c*a*x,o=s*x+c*a*t,e=c*x-s*a*t,i=-l*t,y=s*l,u=-c*l,g=-a;" - "return mat3(r,n,z,i,o,e,g,u,y);" - "}" - "vec3 t(vec3 c,vec3 f,float m)" - "{" - "vec3 r=vec3(8.,2.,2.);" - "float i=cos(m*3.),a=cos(m*.2)*.02+.5;" - "vec3 x=vec3(0.);" - "mat3 l=n(f.z,f.x,-f.y);" - "vec3 y=f*l;" - "float o=length(y),e=t(o-12.*a)*t(8.485-12.*a)*t(o-8.485);" - "vec3 z=c*vec3(1.-e);" - "r.x=y.x+3.;" - "float u=v,g=t(u*(o-6.*a))*t(u*(o-length(r)));" - "vec3 p=s;" - "return mix(z,p,g*v);" - "}" - "void main()" - "{" - "float f=c;" - "vec2 v=gl_TexCoord[0].xy;" - "vec3 m=vec3(0.);" - "const int s=3;" - "mat3 l=n(f,f,-f);" - "vec3 o=l*vec3(v,float(s)),a=l*vec3(v*vec2(2.),-float(s));" - "for(int r=0;r<=s;++r)" - "{" - "float y=float(r)/float(s);" - "vec3 x=mix(o,a,y);" - "m=t(m,x,f);" - "}" - "gl_FragColor=vec4(m,1.);" - "}"; - -#endif // GRAINDO12_FRAG_EXPECTED_ diff --git a/tests/real/extatique/graindo12.vs.expected b/tests/real/extatique/graindo12.vs.expected deleted file mode 100644 index a4ec07fc..00000000 --- a/tests/real/extatique/graindo12.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef GRAINDO12_VS_EXPECTED_ -# define GRAINDO12_VS_EXPECTED_ - -const char *graindo12_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // GRAINDO12_VS_EXPECTED_ diff --git a/tests/real/extatique/lambert.frag.expected b/tests/real/extatique/lambert.frag.expected deleted file mode 100644 index 7f8bddd2..00000000 --- a/tests/real/extatique/lambert.frag.expected +++ /dev/null @@ -1,57 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef LAMBERT_FRAG_EXPECTED_ -# define LAMBERT_FRAG_EXPECTED_ -# define VAR_N "d" -# define VAR_AMBIENTCOLOR "n" -# define VAR_L1_POS "l" -# define VAR_L2_POS "r" -# define VAR_L3_POS "m" -# define VAR_LIGHT1COLOR "x" -# define VAR_LIGHT1DIFFUSE "a" -# define VAR_LIGHT1SPECULAR "g" -# define VAR_LIGHT2COLOR "f" -# define VAR_LIGHT2DIFFUSE "i" -# define VAR_LIGHT2SPECULAR "c" -# define VAR_LIGHT3COLOR "e" -# define VAR_LIGHT3DIFFUSE "u" -# define VAR_LIGHT3SPECULAR "o" -# define VAR_NOISE "h" -# define VAR_POS "v" -# define VAR_THRESHOLDZ "y" -# define VAR_WPOS "t" - -const char *lambert_frag = - "varying vec3 d,v,t,l,r,m;" - "uniform vec3 x,f,e,n;" - "uniform float g,c,o,a,i,u,y;" - "const float s=.2,p=.1,z=1.,D=10.;" - "uniform sampler2D h;" - "float w(vec3 d)" - "{" - "return 1./(1.+.012*dot(d,d));" - "}" - "vec3 w(vec3 d,float v)" - "{" - "return mix(d,vec3(dot(vec3(.3),d)),v);" - "}" - "void main()" - "{" - "vec2 a=gl_TexCoord[0].xy;" - "vec3 u=vec3(texture2D(h,a+vec2(.13,.46)).x,texture2D(h,a).x,texture2D(h,a+vec2(-.33,.14)).x);" - "u=(u-vec3(.5))*5.;" - "vec3 i=normalize(d+u);" - "if(i.z1.)" - "{" - "gl_FragColor=vec4(1.,0.,0.,1.);" - "return;" - "}" - "vec3 m=t(r);" - "gl_FragColor=vec4(m,1.);" - "}"; - -#endif // RAYMARCH_FRAG_EXPECTED_ diff --git a/tests/real/extatique/raymarch.vs.expected b/tests/real/extatique/raymarch.vs.expected deleted file mode 100644 index 9a5f1e03..00000000 --- a/tests/real/extatique/raymarch.vs.expected +++ /dev/null @@ -1,17 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef RAYMARCH_VS_EXPECTED_ -# define RAYMARCH_VS_EXPECTED_ -# define VAR_DIR "v" - -const char *raymarch_vs = - "varying vec3 v;" - "void main()" - "{" - "vec4 n=ftransform();" - "gl_Position=n;" - "v=n.xyz;" - "}"; - -#endif // RAYMARCH_VS_EXPECTED_ diff --git a/tests/real/extatique/scene30.frag.expected b/tests/real/extatique/scene30.frag.expected deleted file mode 100644 index 764f8dfa..00000000 --- a/tests/real/extatique/scene30.frag.expected +++ /dev/null @@ -1,39 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SCENE30_FRAG_EXPECTED_ -# define SCENE30_FRAG_EXPECTED_ -# define VAR_N "d" -# define VAR_ANGLE "f" -# define VAR_POS "r" -# define VAR_TEX "v" -# define VAR_TIME "z" - -const char *scene30_frag = - "uniform sampler2D v;" - "uniform float f,z;" - "varying vec3 r,d;" - "vec4 t(vec3 d)" - "{" - "float m=atan(d.x,d.y+.01),t=-r.z;" - "vec4 y=vec4(0.);" - "for(int i=0;i<8;++i)" - "{" - "float g=float(i),n=t*2./(1.+g)+z*.01*(2.+g),e=f+2.5*m/3.14159;" - "y+=texture2D(v,vec2(n,e))/(1.+.3*g);" - "}" - "return y;" - "}" - "vec3 t(vec3 v,vec3 r)" - "{" - "float i=.8*max(0.,dot(r,vec3(1.,.2,0.))),d=.2*max(0.,dot(r,vec3(-1.,-.1,0.)));" - "vec3 y=vec3(i)*vec3(.8,.7,.6)+vec3(d)*vec3(.6,.7,.8);" - "return y;" - "}" - "void main()" - "{" - "vec3 i=normalize(d),v=reflect(-r,normalize(i)),n=t(v).xyz*mix(vec3(1.),gl_Color.xyz,.4),y=t(r).xyz*gl_Color.xyz;" - "gl_FragColor=vec4(y+n,1.);" - "}"; - -#endif // SCENE30_FRAG_EXPECTED_ diff --git a/tests/real/extatique/scene30.vs.expected b/tests/real/extatique/scene30.vs.expected deleted file mode 100644 index 99cc5b66..00000000 --- a/tests/real/extatique/scene30.vs.expected +++ /dev/null @@ -1,16 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SCENE30_VS_EXPECTED_ -# define SCENE30_VS_EXPECTED_ -# define VAR_N "g" -# define VAR_POS "r" - -const char *scene30_vs = - "varying vec3 r,g;" - "void main()" - "{" - "r=(gl_ModelViewMatrix*gl_Vertex).xyz,gl_Position=ftransform(),gl_FrontColor=gl_Color,g=gl_NormalMatrix*gl_Normal;" - "}"; - -#endif // SCENE30_VS_EXPECTED_ diff --git a/tests/real/extatique/scene40.frag.expected b/tests/real/extatique/scene40.frag.expected deleted file mode 100644 index 30a6b0a0..00000000 --- a/tests/real/extatique/scene40.frag.expected +++ /dev/null @@ -1,95 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SCENE40_FRAG_EXPECTED_ -# define SCENE40_FRAG_EXPECTED_ -# define VAR_N "z" -# define VAR_CENTER "x" -# define VAR_EYEPOS "d" -# define VAR_LIGHT1 "f" -# define VAR_LIGHT2 "r" -# define VAR_LIGHT3 "n" -# define VAR_LIGHT4 "t" -# define VAR_MEDIUM "o" -# define VAR_RADIUS "y" -# define VAR_TEX "v" -# define VAR_WPOS "m" - -const char *scene40_frag = - "uniform sampler2D v;" - "varying vec3 m,z;" - "uniform vec3 d;" - "uniform float y,o;" - "uniform vec3 x,f,r,n,t;" - "vec3 s(vec3 s,vec2 z)" - "{" - "vec3 m=texture2D(v,z*.05).xyz,y=s*.1-vec3(-.5,-.5,-.5),x=s*.1-vec3(.5,.5,-.5),o=s*.1-vec3(-.5,.5,.5),a=s*.1-vec3(.5,-.5,.5),d=f*vec3(max(0.,1.25-dot(y,y))),e=r*vec3(max(0.,1.25-dot(x,x))),c=n*vec3(max(0.,1.25-dot(o,o))),l=t*vec3(max(0.,1.25-dot(a,a)));" - "return m+d+e+c+l;" - "}" - "float s(float v)" - "{" - "float s=max(-1.15365,v);" - "return 1.+s*(1.+s*(.5+s*.333333));" - "}" - "vec3 e(vec3 v,vec3 z)" - "{" - "vec3 m=vec3(0.),o=v,y=z,f=vec3(.5),x,r=vec3(0.),a,e;" - "vec2 d;" - "vec3 n,t;" - "for(int u=0;u<1;++u)" - "{" - "a=40.*y;" - "e=vec3(0.);" - "d=vec2(0.);" - "x=o+a;" - "if(abs(x.x)>10.)" - "{" - "if(x.x>10.)" - "a*=(9.99-o.x)/a.x,e=vec3(-1.,0.,0.),x=a+o,d=x.yz,r=s(x,d);" - "else" - " a*=(-9.99-o.x)/a.x,e=vec3(1.,0.,0.),x=a+o,d=x.yz*vec2(-1.,1.),r=s(x,d);" - "}" - "if(abs(x.y)>10.)" - "{" - "if(x.y>10.)" - "a*=(9.99-o.y)/a.y,e=vec3(0.,-1.,0.),x=a+o,d=x.xz*vec2(-1.,1.),r=s(x,d);" - "else" - " a*=(-9.99-o.y)/a.y,e=vec3(0.,1.,0.),x=a+o,d=x.xz,r=s(x,d);" - "}" - "if(abs(x.z)>10.)" - "{" - "if(x.z>10.)" - "a*=(9.99-o.z)/a.z,e=vec3(0.,0.,-1.),x=a+o,d=x.xy*vec2(-1.,1.),r=s(x,d);" - "else" - " a*=(-9.99-o.z)/a.z,e=vec3(0.,0.,1.),x=a+o,d=x.xy,r=s(x,d);" - "}" - "t=r*vec3(s(-length(a)*.04));" - "m+=t*f;" - "f*=t;" - "n=reflect(y,e);" - "o=x;" - "y=n;" - "}" - "return m;" - "}" - "void e(vec3 v,vec3 x,float s,float a,out vec3 e,out vec3 y,out float d)" - "{" - "float o=s/a,r=dot(-v,x);" - "d=sqrt(1.-o*o*(1.-r*r));" - "e=v+x*(2.*r);" - "y=v*o+x*(d+o*r);" - "}" - "void main()" - "{" - "vec3 r=normalize(z),a=normalize(m-d),v,f;" - "float n,t;" - "e(a,r,1.,o+.1,v,f,n);" - "float u=2.*n*y;" - "vec3 c=m+f*vec3(u),l=-(c-x)/y,i,g;" - "e(f,l,o+.3,1.,i,g,t);" - "float b=2.*s(-dot(u,u)*.2);" - "vec3 C=e(c,g)*vec3(b),D=e(m,v)*gl_Color.xyz;" - "gl_FragColor=gl_Color*vec4(D+C,1.);" - "}"; - -#endif // SCENE40_FRAG_EXPECTED_ diff --git a/tests/real/extatique/scene40.vs.expected b/tests/real/extatique/scene40.vs.expected deleted file mode 100644 index bbca2ac0..00000000 --- a/tests/real/extatique/scene40.vs.expected +++ /dev/null @@ -1,18 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SCENE40_VS_EXPECTED_ -# define SCENE40_VS_EXPECTED_ -# define VAR_N "g" -# define VAR_EYEPOS "v" -# define VAR_WPOS "r" - -const char *scene40_vs = - "varying vec3 r,g;" - "uniform vec3 v;" - "void main()" - "{" - "r=gl_Vertex.xyz,gl_Position=ftransform(),gl_FrontColor=gl_Color,g=gl_Normal;" - "}"; - -#endif // SCENE40_VS_EXPECTED_ diff --git a/tests/real/extatique/scene45.frag.expected b/tests/real/extatique/scene45.frag.expected deleted file mode 100644 index bb38657a..00000000 --- a/tests/real/extatique/scene45.frag.expected +++ /dev/null @@ -1,20 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SCENE45_FRAG_EXPECTED_ -# define SCENE45_FRAG_EXPECTED_ -# define VAR_TEX "y" -# define VAR_TIME "r" - -const char *scene45_frag = - "uniform sampler2D y;" - "uniform float r;" - "void main()" - "{" - "vec2 v=gl_TexCoord[0].xy;" - "float f=atan(v.y,v.x+.0001)/3.14159,e=.002/(.01+length(v))-r*.1;" - "vec4 t=texture2D(y,vec2(f,e))+vec4(.5)*texture2D(y,vec2(f,e*4.))+vec4(.25)*texture2D(y,vec2(f,e*16.));" - "gl_FragColor=gl_Color*t;" - "}"; - -#endif // SCENE45_FRAG_EXPECTED_ diff --git a/tests/real/extatique/scene45.vs.expected b/tests/real/extatique/scene45.vs.expected deleted file mode 100644 index 7a3fe10b..00000000 --- a/tests/real/extatique/scene45.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SCENE45_VS_EXPECTED_ -# define SCENE45_VS_EXPECTED_ - -const char *scene45_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // SCENE45_VS_EXPECTED_ diff --git a/tests/real/extatique/skybox.frag.expected b/tests/real/extatique/skybox.frag.expected deleted file mode 100644 index dd1b0be7..00000000 --- a/tests/real/extatique/skybox.frag.expected +++ /dev/null @@ -1,32 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SKYBOX_FRAG_EXPECTED_ -# define SKYBOX_FRAG_EXPECTED_ -# define VAR_ANGLE "f" -# define VAR_POS "i" -# define VAR_TEX "v" -# define VAR_TIME "z" - -const char *skybox_frag = - "uniform sampler2D v;" - "uniform float f,z;" - "varying vec3 i;" - "vec4 t(vec3 t)" - "{" - "float r=atan(t.x,t.y+.01),a=-i.z;" - "vec4 m=vec4(0.);" - "for(int u=0;u<8;++u)" - "{" - "float s=float(u),x=a/(1.+s)+z*.01*(2.+s),e=f+2.5*r/3.14159;" - "m+=texture2D(v,vec2(x,e))/(1.+.3*s);" - "}" - "return m;" - "}" - "void main()" - "{" - "vec4 v=t(i);" - "gl_FragColor=vec4(v.xyz,1.);" - "}"; - -#endif // SKYBOX_FRAG_EXPECTED_ diff --git a/tests/real/extatique/skybox.vs.expected b/tests/real/extatique/skybox.vs.expected deleted file mode 100644 index c27ec8e4..00000000 --- a/tests/real/extatique/skybox.vs.expected +++ /dev/null @@ -1,15 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SKYBOX_VS_EXPECTED_ -# define SKYBOX_VS_EXPECTED_ -# define VAR_POS "n" - -const char *skybox_vs = - "varying vec3 n;" - "void main()" - "{" - "n=(gl_ModelViewMatrix*gl_Vertex).xyz,gl_Position=ftransform();" - "}"; - -#endif // SKYBOX_VS_EXPECTED_ diff --git a/tests/real/extatique/skybox2.frag.expected b/tests/real/extatique/skybox2.frag.expected deleted file mode 100644 index cb2c1b5e..00000000 --- a/tests/real/extatique/skybox2.frag.expected +++ /dev/null @@ -1,76 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SKYBOX2_FRAG_EXPECTED_ -# define SKYBOX2_FRAG_EXPECTED_ -# define VAR_EYEPOS "z" -# define VAR_LIGHT1 "y" -# define VAR_LIGHT2 "r" -# define VAR_LIGHT3 "x" -# define VAR_LIGHT4 "t" -# define VAR_TEX "m" -# define VAR_WPOS "v" - -const char *skybox2_frag = - "varying vec3 v;" - "uniform vec3 z;" - "uniform sampler2D m;" - "uniform vec3 y,r,x,t;" - "vec3 f(vec3 v,vec2 z)" - "{" - "vec3 s=texture2D(m,z*.05).xyz,a=v*.1-vec3(-.5,-.5,-.5),f=v*.1-vec3(.5,.5,-.5),i=v*.1-vec3(-.5,.5,.5),n=v*.1-vec3(.5,-.5,.5),e=y*vec3(max(0.,1.25-dot(a,a))),c=r*vec3(max(0.,1.25-dot(f,f))),o=x*vec3(max(0.,1.25-dot(i,i))),l=t*vec3(max(0.,1.25-dot(n,n)));" - "return s+e+c+o+l;" - "}" - "float f(float z)" - "{" - "float v=max(-1.15365,z);" - "return 1.+v*(1.+v*(.5+v*.333333));" - "}" - "vec3 s(vec3 v,vec3 z)" - "{" - "vec3 s=vec3(0.),r=v,a=z,e=vec3(.5),m,t=vec3(0.),y,i;" - "vec2 n;" - "vec3 x,l;" - "for(int u=0;u<3;++u)" - "{" - "y=50.*a;" - "i=vec3(0.);" - "n=vec2(0.);" - "m=r+y;" - "if(abs(m.x)>10.)" - "{" - "if(m.x>10.)" - "y*=(9.99-r.x)/y.x,i=vec3(-1.,0.,0.),m=y+r,n=m.yz,t=f(m,n);" - "else" - " y*=(-9.99-r.x)/y.x,i=vec3(1.,0.,0.),m=y+r,n=m.yz*vec2(-1.,1.),t=f(m,n);" - "}" - "if(abs(m.y)>10.)" - "{" - "if(m.y>10.)" - "y*=(9.99-r.y)/y.y,i=vec3(0.,-1.,0.),m=y+r,n=m.xz*vec2(-1.,1.),t=f(m,n);" - "else" - " y*=(-9.99-r.y)/y.y,i=vec3(0.,1.,0.),m=y+r,n=m.xz,t=f(m,n);" - "}" - "if(abs(m.z)>10.)" - "{" - "if(m.z>10.)" - "y*=(9.99-r.z)/y.z,i=vec3(0.,0.,-1.),m=y+r,n=m.xy*vec2(-1.,1.),t=f(m,n);" - "else" - " y*=(-9.99-r.z)/y.z,i=vec3(0.,0.,1.),m=y+r,n=m.xy,t=f(m,n);" - "}" - "l=t*vec3(f(-length(y)*.04));" - "s+=l*e;" - "e*=l;" - "x=reflect(a,i);" - "r=m;" - "a=x;" - "}" - "return s;" - "}" - "void main()" - "{" - "vec3 m=s(z,normalize(v-z));" - "gl_FragColor=gl_Color*vec4(m,1.);" - "}"; - -#endif // SKYBOX2_FRAG_EXPECTED_ diff --git a/tests/real/extatique/skybox2.vs.expected b/tests/real/extatique/skybox2.vs.expected deleted file mode 100644 index 65d773d2..00000000 --- a/tests/real/extatique/skybox2.vs.expected +++ /dev/null @@ -1,17 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SKYBOX2_VS_EXPECTED_ -# define SKYBOX2_VS_EXPECTED_ -# define VAR_EYEPOS "m" -# define VAR_WPOS "v" - -const char *skybox2_vs = - "varying vec3 v;" - "uniform vec3 m;" - "void main()" - "{" - "v=gl_Vertex.xyz,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // SKYBOX2_VS_EXPECTED_ diff --git a/tests/real/extatique/snake.frag.expected b/tests/real/extatique/snake.frag.expected deleted file mode 100644 index f7fd0325..00000000 --- a/tests/real/extatique/snake.frag.expected +++ /dev/null @@ -1,25 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SNAKE_FRAG_EXPECTED_ -# define SNAKE_FRAG_EXPECTED_ -# define VAR_NORMAL "v" -# define VAR_PROFONDEUR "r" - -const char *snake_frag = - "varying vec3 v;" - "varying float r;" - "vec4 t(vec4 v,float f)" - "{" - "vec3 r=vec3(dot(vec3(.33),v.xyz));" - "return vec4(mix(v.xyz,r,f),v.w);" - "}" - "void main()" - "{" - "vec3 f=v,d=vec3(0.,0.,-1.);" - "float m=max(0.,dot(f,d));" - "vec4 t=gl_Color*vec4(.1+.9*vec3(m),m);" - "gl_FragColor=t*exp(-r*.1);" - "}"; - -#endif // SNAKE_FRAG_EXPECTED_ diff --git a/tests/real/extatique/snake.vs.expected b/tests/real/extatique/snake.vs.expected deleted file mode 100644 index 674fd9a1..00000000 --- a/tests/real/extatique/snake.vs.expected +++ /dev/null @@ -1,17 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SNAKE_VS_EXPECTED_ -# define SNAKE_VS_EXPECTED_ -# define VAR_NORMAL "r" -# define VAR_PROFONDEUR "n" - -const char *snake_vs = - "varying vec3 r;" - "varying float n;" - "void main()" - "{" - "gl_FrontColor=gl_Color,r=normalize(gl_Normal),gl_Position=ftransform(),n=gl_Position.z;" - "}"; - -#endif // SNAKE_VS_EXPECTED_ diff --git a/tests/real/extatique/water.frag.expected b/tests/real/extatique/water.frag.expected deleted file mode 100644 index 2ecacb3a..00000000 --- a/tests/real/extatique/water.frag.expected +++ /dev/null @@ -1,56 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef WATER_FRAG_EXPECTED_ -# define WATER_FRAG_EXPECTED_ -# define VAR_RATIO "y" -# define VAR_SPACING "f" -# define VAR_TEX "t" -# define VAR_TEXU "x" -# define VAR_TEXV "m" - -const char *water_frag = - "uniform sampler2D t,x,m;" - "uniform float f,y;" - "void main()" - "{" - "vec2 v=gl_TexCoord[0].xy;" - "vec4 r=texture2D(t,v*2.5);" - "vec2 s=vec2(f)*vec2(texture2D(x,v).x,texture2D(m,v).x),g=v-s;" - "r=texture2D(t,g)*.97553;" - "vec2 e=vec2(f)*vec2(texture2D(x,g).x,texture2D(m,g).x),c=g-e;" - "r+=texture2D(t,c)*.904514;" - "vec2 u=vec2(f)*vec2(texture2D(x,c).x,texture2D(m,c).x),D=c-u;" - "r+=texture2D(t,g)*.793904;" - "vec2 o=vec2(f)*vec2(texture2D(x,D).x,texture2D(m,D).x),l=D-o;" - "r+=texture2D(t,c)*.654526;" - "vec2 a=vec2(f)*vec2(texture2D(x,l).x,texture2D(m,l).x),i=l-a;" - "r+=texture2D(t,g)*.500023;" - "vec2 d=vec2(f)*vec2(texture2D(x,i).x,texture2D(m,i).x),n=i-d;" - "r+=texture2D(t,c)*.345518;" - "vec2 C=vec2(f)*vec2(texture2D(x,n).x,texture2D(m,n).x),p=n-C;" - "r+=texture2D(t,g)*.206134;" - "vec2 F=vec2(f)*vec2(texture2D(x,p).x,texture2D(m,p).x),T=p-F;" - "r+=texture2D(t,c)*.0955133;" - "vec2 b=v+s;" - "r+=texture2D(t,b)*.97553;" - "vec2 h=vec2(f)*vec2(texture2D(x,b).x,texture2D(m,b).x),j=b+h;" - "r+=texture2D(t,j)*.904514;" - "vec2 k=vec2(f)*vec2(texture2D(x,j).x,texture2D(m,j).x),q=j+k;" - "r+=texture2D(t,b)*.793904;" - "vec2 w=vec2(f)*vec2(texture2D(x,q).x,texture2D(m,q).x),z=q+w;" - "r+=texture2D(t,j)*.654526;" - "vec2 A=vec2(f)*vec2(texture2D(x,z).x,texture2D(m,z).x),B=z+A;" - "r+=texture2D(t,b)*.500023;" - "vec2 E=vec2(f)*vec2(texture2D(x,B).x,texture2D(m,B).x),G=B+E;" - "r+=texture2D(t,j)*.345518;" - "vec2 H=vec2(f)*vec2(texture2D(x,G).x,texture2D(m,G).x),I=G+H;" - "r+=texture2D(t,b)*.206134;" - "vec2 J=vec2(f)*vec2(texture2D(x,I).x,texture2D(m,I).x),K=I+J;" - "r+=texture2D(t,j)*.0955133;" - "vec2 L=(v-vec2(.5,.5))*vec2(1.,y);" - "vec4 M=vec4(max(0.,1.-2.5*dot(L,L))),N=gl_Color*r*vec4(.1)*M;" - "gl_FragColor=N;" - "}"; - -#endif // WATER_FRAG_EXPECTED_ diff --git a/tests/real/extatique/water.vs.expected b/tests/real/extatique/water.vs.expected deleted file mode 100644 index a29fa9de..00000000 --- a/tests/real/extatique/water.vs.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef WATER_VS_EXPECTED_ -# define WATER_VS_EXPECTED_ - -const char *water_vs = - "void main()" - "{" - "gl_TexCoord[0]=gl_MultiTexCoord0,gl_FrontColor=gl_Color,gl_Position=ftransform();" - "}"; - -#endif // WATER_VS_EXPECTED_ diff --git a/tests/real/fly.frag.expected b/tests/real/fly.frag.expected deleted file mode 100644 index 8053323b..00000000 --- a/tests/real/fly.frag.expected +++ /dev/null @@ -1,25 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef FLY_FRAG_EXPECTED_ -# define FLY_FRAG_EXPECTED_ -# define VAR_RESOLUTION "a" -# define VAR_TEX0 "y" -# define VAR_TEX1 "o" -# define VAR_TEX2 "r" -# define VAR_TIME "s" - -const char *fly_frag = - "uniform vec2 a;" - "uniform float s;" - "uniform sampler2D y,o,r;" - "void main()" - "{" - "vec2 v=-1.+2.*gl_FragCoord.xy/a.xy,r;" - "float x=s*.25,c=v.x*cos(x)-v.y*sin(x),o=v.x*sin(x)+v.y*cos(x);" - "r.x=.25*c/abs(o);" - "r.y=.2*s+.25/abs(o);" - "gl_FragColor=vec4(texture2D(y,r).xyz*o*o,1.);" - "}"; - -#endif // FLY_FRAG_EXPECTED_ diff --git a/tests/real/gfx monitor/ambiantocclusion.vs.expected b/tests/real/gfx monitor/ambiantocclusion.vs.expected deleted file mode 100644 index aa44e081..00000000 --- a/tests/real/gfx monitor/ambiantocclusion.vs.expected +++ /dev/null @@ -1,16 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef AMBIANTOCCLUSION_VS_EXPECTED_ -# define AMBIANTOCCLUSION_VS_EXPECTED_ -# define VAR_DIR "n" -# define VAR_ORG "v" - -const char *ambiantocclusion_vs = - "varying vec3 v,n;" - "void main()" - "{" - "gl_Position=gl_Vertex,v=vec3(0,0,0),n=normalize(-vec3(-gl_Vertex.x*1.6,-gl_Vertex.y,1));" - "}"; - -#endif // AMBIANTOCCLUSION_VS_EXPECTED_ diff --git a/tests/real/gfx monitor/distancefieldRaytrace.frag.expected b/tests/real/gfx monitor/distancefieldRaytrace.frag.expected deleted file mode 100644 index ffc8d82b..00000000 --- a/tests/real/gfx monitor/distancefieldRaytrace.frag.expected +++ /dev/null @@ -1,85 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef DISTANCEFIELDRAYTRACE_FRAG_EXPECTED_ -# define DISTANCEFIELDRAYTRACE_FRAG_EXPECTED_ -# define VAR_DIR "v" -# define VAR_ORG "m" - -const char *distancefieldRaytrace_frag = - "varying vec3 m,v;" - "float n(vec3 m,float v)" - "{" - "return abs(v-m.y);" - "}" - "float t(vec3 m,vec4 v)" - "{" - "return length(v.xyz-m)-v.w;" - "}" - "float h(vec3 v,vec4 m)" - "{" - "return length(vec2(m.x+.5*sin(v.y+v.z*2.),m.z)-v.xz)-m.w;" - "}" - "float h(vec3 v)" - "{" - "float m=n(v,-5.);" - "m=min(m,n(v,5.));" - "m=min(m,t(v,vec4(0,-2,15,1.5)));" - "m=min(m,t(v,vec4(-8,0,20,2.)));" - "m=min(m,t(v,vec4(-5,4,15,.5)));" - "m=min(m,t(v,vec4(-1,3,15,2.)));" - "m=min(m,t(v,vec4(2,-3,15,.5)));" - "m=min(m,h(v,vec4(10,0,20,1.)));" - "m=min(m,h(v,vec4(4,0,15,1.)));" - "m=min(m,h(v,vec4(0,0,20,1.)));" - "m=min(m,h(v,vec4(-2,0,25,1.)));" - "m=min(m,h(v,vec4(-6,0,30,1.)));" - "m=min(m,h(v,vec4(-12,0,35,1.)));" - "return m;" - "}" - "vec3 n(vec3 v)" - "{" - "float m=.01;" - "return normalize(vec3(h(v+vec3(m,0,0))-h(v-vec3(m,0,0)),h(v+vec3(0,m,0))-h(v-vec3(0,m,0)),h(v+vec3(0,0,m))-h(v-vec3(0,0,m))));" - "}" - "float l(vec3 v,vec3 m)" - "{" - "float l=.5,t=0.,r=1.;" - "for(int f=0;f<6;f++)" - "t+=(float(f)*l-h(v+m*float(f)*l))/r,r*=2.;" - "return 1.-t;" - "}" - "void main()" - "{" - "float r,t=0.;" - "vec3 f=m;" - "for(int a=0;a<64;a++)" - "t=h(f),f=f+t*v;" - "if(t>1.)" - "{" - "gl_FragColor=vec4(0,0,0,1);" - "return;" - "}" - "vec3 a=n(f);" - "float s=l(f,a);" - "vec3 i=vec3(0,0,0),g[3],d[3];" - "g[0]=vec3(-4,0,4);" - "g[1]=vec3(2,3,8);" - "g[2]=vec3(4,-2,24);" - "d[0]=vec3(1.,.5,.4);" - "d[1]=vec3(.4,.5,1.);" - "d[2]=vec3(.2,1.,.5);" - "for(int x=0;x<3;x++)" - "{" - "vec3 e,z;" - "z=g[x]-f;" - "e=normalize(z);" - "r=length(z);" - "r=max(0.,dot(e,a))/r*float(10);" - "i+=r*d[x];" - "}" - "float z=min(1.,20./length(f-m));" - "gl_FragColor=vec4(i*s,1)*z*z;" - "}"; - -#endif // DISTANCEFIELDRAYTRACE_FRAG_EXPECTED_ diff --git a/tests/real/gfx monitor/distancefieldRaytrace.vs.expected b/tests/real/gfx monitor/distancefieldRaytrace.vs.expected deleted file mode 100644 index 083f68e7..00000000 --- a/tests/real/gfx monitor/distancefieldRaytrace.vs.expected +++ /dev/null @@ -1,16 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef DISTANCEFIELDRAYTRACE_VS_EXPECTED_ -# define DISTANCEFIELDRAYTRACE_VS_EXPECTED_ -# define VAR_DIR "n" -# define VAR_ORG "g" - -const char *distancefieldRaytrace_vs = - "varying vec3 g,n;" - "void main()" - "{" - "gl_Position=gl_Vertex,g=vec3(0,0,0),n=normalize(vec3(gl_Vertex.x*1.6,gl_Vertex.y,2));" - "}"; - -#endif // DISTANCEFIELDRAYTRACE_VS_EXPECTED_ diff --git a/tests/real/gfx monitor/gradation.frag.expected b/tests/real/gfx monitor/gradation.frag.expected deleted file mode 100644 index 7c60b156..00000000 --- a/tests/real/gfx monitor/gradation.frag.expected +++ /dev/null @@ -1,17 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef GRADATION_FRAG_EXPECTED_ -# define GRADATION_FRAG_EXPECTED_ -# define VAR_P "v" - -const char *gradation_frag = - "varying vec4 v;" - "void main()" - "{" - "float r=v.y*.5+.5;" - "gl_FragColor=vec4(r,r,r,0);" - "return;" - "}"; - -#endif // GRADATION_FRAG_EXPECTED_ diff --git a/tests/real/gfx monitor/gradation.gs.expected b/tests/real/gfx monitor/gradation.gs.expected deleted file mode 100644 index 33a001c2..00000000 --- a/tests/real/gfx monitor/gradation.gs.expected +++ /dev/null @@ -1,15 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef GRADATION_GS_EXPECTED_ -# define GRADATION_GS_EXPECTED_ -# define VAR_P "n" - -const char *gradation_gs = - "varying vec4 n;" - "void main()" - "{" - "gl_Position=gl_Vertex,n=gl_Vertex;" - "}"; - -#endif // GRADATION_GS_EXPECTED_ diff --git a/tests/real/gfx monitor/raytrace.vs.expected b/tests/real/gfx monitor/raytrace.vs.expected deleted file mode 100644 index 33234aa9..00000000 --- a/tests/real/gfx monitor/raytrace.vs.expected +++ /dev/null @@ -1,16 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef RAYTRACE_VS_EXPECTED_ -# define RAYTRACE_VS_EXPECTED_ -# define VAR_DIR "n" -# define VAR_ORG "v" - -const char *raytrace_vs = - "varying vec3 v,n;" - "void main()" - "{" - "gl_Position=gl_Vertex,v=vec3(0,0,0),n=normalize(-vec3(-gl_Vertex.x*1.6,-gl_Vertex.y,1));" - "}"; - -#endif // RAYTRACE_VS_EXPECTED_ diff --git a/tests/real/julia.frag.expected b/tests/real/julia.frag.expected deleted file mode 100644 index f01deb05..00000000 --- a/tests/real/julia.frag.expected +++ /dev/null @@ -1,34 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef JULIA_FRAG_EXPECTED_ -# define JULIA_FRAG_EXPECTED_ -# define VAR_RESOLUTION "f" -# define VAR_TEX0 "y" -# define VAR_TEX1 "s" -# define VAR_TEX2 "o" -# define VAR_TEX3 "k" -# define VAR_TIME "v" - -const char *julia_frag = - "uniform vec2 f;" - "uniform float v;" - "uniform sampler2D y,s,o,k;" - "void main()" - "{" - "vec2 y=-1.+2.*gl_FragCoord.xy/f.xy,s=vec2(cos(.25*v),sin(.25*v*1.423));" - "float i=1000.;" - "vec2 o=y*vec2(1.33,1.);" - "for(int u=0;u<64;u++)" - "{" - "o=s+vec2(o.x*o.x-o.y*o.y,2.*o.x*o.y);" - "float k=dot(o,o);" - "if(k>100.)" - "break;" - "i=min(i,k);" - "}" - "float k=sqrt(sqrt(i))*.7;" - "gl_FragColor=vec4(k,k,k,1.);" - "}"; - -#endif // JULIA_FRAG_EXPECTED_ diff --git a/tests/real/kaleidoscope.frag.expected b/tests/real/kaleidoscope.frag.expected deleted file mode 100644 index 588ece84..00000000 --- a/tests/real/kaleidoscope.frag.expected +++ /dev/null @@ -1,28 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef KALEIDOSCOPE_FRAG_EXPECTED_ -# define KALEIDOSCOPE_FRAG_EXPECTED_ -# define VAR_RESOLUTION "f" -# define VAR_TEX0 "y" -# define VAR_TEX1 "o" -# define VAR_TEX2 "r" -# define VAR_TEX3 "z" -# define VAR_TIME "s" - -const char *kaleidoscope_frag = - "uniform vec2 f;" - "uniform float s;" - "uniform sampler2D y,o,r,z;" - "void main()" - "{" - "vec2 r=-1.+2.*gl_FragCoord.xy/f.xy,z;" - "float c=atan(r.y,r.x),x=sqrt(dot(r,r));" - "z.x=7.*c/3.1416;" - "z.y=-s+sin(7.*x+s)+.7*cos(s+7.*c);" - "float o=.5+.5*(sin(s+7.*x)+.7*cos(s+7.*c));" - "vec3 m=texture2D(y,z*.5).xyz;" - "gl_FragColor=vec4(m*o,1.);" - "}"; - -#endif // KALEIDOSCOPE_FRAG_EXPECTED_ diff --git a/tests/real/kinder_painter.frag.expected b/tests/real/kinder_painter.frag.expected deleted file mode 100644 index 6e76bc70..00000000 --- a/tests/real/kinder_painter.frag.expected +++ /dev/null @@ -1,196 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef KINDER_PAINTER_FRAG_EXPECTED_ -# define KINDER_PAINTER_FRAG_EXPECTED_ -# define VAR_MOUSE "f" -# define VAR_RESOLUTION "v" -# define VAR_TEX0 "i" -# define VAR_TEX1 "w" -# define VAR_TEX2 "o" -# define VAR_TEX3 "y" -# define VAR_TIME "z" - -const char *kinder_painter_frag = - "uniform vec2 v;" - "uniform float z;" - "uniform vec4 f;" - "uniform sampler2D i,w,o,y;" - "vec4 r[6],b[6];" - "float t(in vec4 v,in vec3 m,in vec3 i)" - "{" - "vec3 r=m-v.xyz;" - "float z=dot(i.xz,i.xz),d=dot(i.xz,r.xz),w=dot(r.xz,r.xz)-v.w*v.w,b;" - "b=d*d-z*w;" - "if(b>0.)" - "b=-(d+sqrt(b))/z;" - "return b-.001;" - "}" - "float d(in vec4 v,in vec3 m,in vec3 z)" - "{" - "vec3 i=m-v.xyz;" - "float d=dot(z,i),w=dot(i,i)-v.w*v.w,r=d*d-w;" - "if(r>0.)" - "r=-d-sqrt(r);" - "return r-.001;" - "}" - "bool d(in vec4 v,in vec3 m,in vec3 i,in float z)" - "{" - "vec3 r=m-v.xyz;" - "float d=dot(i,r),w=dot(r,r)-v.w*v.w,b=d*d-w;" - "bool f=false;" - "if(b>0.)" - "b=-d-sqrt(b),f=b>0.&&b0.)" - "f=-(d+sqrt(f)),y=f>0.&&f2.5)" - "r.xz=m.xz-v.xz,r.y=0.,r=r/v.w,z=vec2(r.x,m.y);" - "else" - " if(i.w>1.5)" - "r=v.xyz,z=m.xz*.2;" - "else" - " r=m-v.xyz,r=r/v.w,z=r.xy;" - "return r;" - "}" - "vec4 x(in vec4 v,in vec4 z,in bool i)" - "{" - "return i?z:v;" - "}" - "float s(in float v,in float z,in bool i)" - "{" - "return i?z:v;" - "}" - "int m(in int v,in int z,in bool i)" - "{" - "return i?z:v;" - "}" - "float m(in vec3 i,in vec3 v,out vec4 z,out vec4 f)" - "{" - "float w=10000.,y;" - "f.w=-1.;" - "bool o;" - "y=d(r[0],i,v);" - "o=y>0.&&y0.&&y0.&&y0.&&y0.&&y0.&&y1024.)" - "break;" - "g+=1.;" - "}" - "g=g+1.-log2(.5*log2(i));" - "g=sqrt(g/256.);" - "gl_FragColor=vec4(.5+.5*cos(6.2831*g),.5+.5*cos(6.2831*g+.4),.5+.5*cos(6.2831*g+.7),1.);" - "}"; - -#endif // MANDEL_FRAG_EXPECTED_ diff --git a/tests/real/mandelbulb.frag.expected b/tests/real/mandelbulb.frag.expected deleted file mode 100644 index 6253d3b2..00000000 --- a/tests/real/mandelbulb.frag.expected +++ /dev/null @@ -1,130 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef MANDELBULB_FRAG_EXPECTED_ -# define MANDELBULB_FRAG_EXPECTED_ -# define VAR_RESOLUTION "v" -# define VAR_TIME "e" - -const char *mandelbulb_frag = - "uniform vec2 v;" - "uniform float e;" - "bool f(in vec4 v,in vec3 f,in vec3 y,out vec2 i)" - "{" - "vec3 x=f-v.xyz;" - "float e=dot(x,y),o=dot(x,x)-v.w*v.w,s=e*e-o;" - "if(s<0.)" - "return false;" - "float t=sqrt(s);" - "i.x=-e-t;" - "i.y=-e+t;" - "return true;" - "}" - "const int x=7;" - "const float y=100.;" - "bool f(in vec3 v,out float f,out vec4 o)" - "{" - "vec4 i=vec4(100.);" - "vec3 s=v;" - "float t=dot(s,s);" - "if(t>y)" - "return f=.5*log(t)/pow(8.,0.),o=vec4(1.),false;" - "for(int e=1;ey)" - "return o=i,f=.5*log(t)/pow(8.,float(e)),false;" - "}" - "o=i;" - "f=0.;" - "return true;" - "}" - "bool f(in vec3 v,in vec3 s,out float o,in float e,out vec3 x,out vec4 i,float q)" - "{" - "vec4 t=vec4(0.,0.,0.,1.25);" - "vec2 c;" - "if(!f(t,v,s,c))" - "return false;" - "if(c.y<.001)" - "return false;" - "if(c.x<.001)" - "c.x=.001;" - "if(c.y>e)" - "c.y=e;" - "float n;" - "vec3 y;" - "vec4 m;" - "float g=1./sqrt(1.+q*q);" - "for(float a=c.x;a.001)" - "if(f(d,i,b,1e+20,h,j,o))" - "r=.1;" - "n=vec3(1.,1.,1.);" - "n=mix(n,vec3(.8,.6,.2),sqrt(a.x)*1.25);" - "n=mix(n,vec3(.8,.3,.3),sqrt(a.y)*1.25);" - "n=mix(n,vec3(.7,.4,.3),sqrt(a.z)*1.25);" - "n*=(.5+.5*q.y)*vec3(.14,.15,.16)*.8+r*vec3(1.,.85,.4)+.5*F*vec3(.08,.1,.14);" - "n*=vec3(pow(w,.8),pow(w,1.),pow(w,1.1));" - "n=1.5*(n*.15+.85*sqrt(n));" - "}" - "vec2 d=m*.5+.5;" - "n*=.7+4.8*d.x*d.y*(1.-d.x)*(1.-d.y);" - "n=clamp(n,0.,1.);" - "gl_FragColor=vec4(n,1.);" - "}"; - -#endif // MANDELBULB_FRAG_EXPECTED_ diff --git a/tests/real/metatunnel.frag.expected b/tests/real/metatunnel.frag.expected deleted file mode 100644 index b6631e78..00000000 --- a/tests/real/metatunnel.frag.expected +++ /dev/null @@ -1,50 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef METATUNNEL_FRAG_EXPECTED_ -# define METATUNNEL_FRAG_EXPECTED_ -# define VAR_RESOLUTION "k" -# define VAR_TIME "v" - -const char *metatunnel_frag = - "uniform vec2 k;" - "uniform float v;" - "float s(vec3 y)" - "{" - "float f=distance(y,vec3(cos(v)+sin(v*.2),.3,2.+cos(v*.5)*.5));" - "f*=distance(y,vec3(-cos(v*.7),.3,2.+sin(v*.5)));" - "f*=distance(y,vec3(-sin(v*.2)*.5,sin(v),2.));" - "f*=cos(y.y)*cos(y.x)-.1-cos(y.z*7.+v*7.)*cos(y.x*3.)*cos(y.y*4.)*.1;" - "return f;" - "}" - "void main()" - "{" - "vec2 y=-1.+2.*gl_FragCoord.xy/k.xy;" - "vec3 f=vec3(y.x,y.y*1.25-.3,0.),c=vec3(y.x+cos(v)*.3,y.y,1.)/64.;" - "vec4 d=vec4(0.);" - "float x=0.;" - "for(int r=0;r<75;r++)" - "{" - "if(s(f+c*x)<.4)" - "{" - "x-=5.;" - "for(int m=0;m<5;m++)" - "{" - "if(s(f+c*x)<.4)" - "break;" - "x+=1.;" - "}" - "vec3 m=vec3(.01,0.,0.),i=vec3(0.);" - "i.x=s(f+c*x)-s(vec3(f+c*x+m.xyy));" - "i.y=s(f+c*x)-s(vec3(f+c*x+m.yxy));" - "i.z=s(f+c*x)-s(vec3(f+c*x+m.yyx));" - "i=normalize(i);" - "d+=max(dot(vec3(0.,0.,-.5),i),0.)+max(dot(vec3(0.,-.5,.5),i),0.)*.5;" - "break;" - "}" - "x+=5.;" - "}" - "gl_FragColor=d+vec4(.1,.2,.5,1.)*(x*.025);" - "}"; - -#endif // METATUNNEL_FRAG_EXPECTED_ diff --git a/tests/real/monjori.frag.expected b/tests/real/monjori.frag.expected deleted file mode 100644 index d8381549..00000000 --- a/tests/real/monjori.frag.expected +++ /dev/null @@ -1,46 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef MONJORI_FRAG_EXPECTED_ -# define MONJORI_FRAG_EXPECTED_ -# define VAR_RESOLUTION "s" -# define VAR_TEX0 "f" -# define VAR_TEX1 "o" -# define VAR_TEX2 "i" -# define VAR_TEX3 "x" -# define VAR_TIME "c" - -const char *monjori_frag = - "uniform vec2 s;" - "uniform float c;" - "uniform sampler2D f,o,i,x;" - "void main()" - "{" - "vec2 f=-1.+2.*gl_FragCoord.xy/s.xy;" - "float x=c*40.,i,o,v,y=.025,p,g,u,r;" - "o=400.*(f.x*.5+.5);" - "v=400.*(f.y*.5+.5);" - "g=200.+sin(o*y+x/150.)*20.;" - "i=200.+cos(v*y/2.)*18.+cos(o*y)*7.;" - "u=sqrt(pow(g-o,2.)+pow(i-v,2.));" - "r=v/u;" - "o=u*cos(r)-x/2.;" - "v=u*sin(r)-x/2.;" - "i=sin(o*y)*176.+sin(o*y)*164.+u;" - "p=(v+i+x/2.)*y;" - "g=cos(p+u*f.x/1.3)*(o+o+x)+cos(r*y*6.)*(u+p/3.);" - "p=sin(v*y)*144.-sin(o*y)*212.*f.x;" - "p=(p+(v-o)*r+sin(u-(x+p)/7.)*10.+g/4.)*y;" - "g+=cos(p*2.3*sin(x/350.-r))*184.*sin(r-(u*4.3+x/12.)*y)+tan(u*y+p)*184.*cos(u*y+p);" - "g=mod(g/5.6,256.)/64.;" - "if(g<0.)" - "g+=4.;" - "if(g>=2.)" - "g=4.-g;" - "i=u/350.;" - "i+=sin(i*i*8.)*.52;" - "v=(sin(x*y)+1.)/2.;" - "gl_FragColor=vec4(v*g/1.6,g/2.+i/13.,g,1.)*i*f.x+vec4(g/1.3+i/8.,g/2.+i/18.,g,1.)*i*(1.-f.x);" - "}"; - -#endif // MONJORI_FRAG_EXPECTED_ diff --git a/tests/real/motion_blur.frag.expected b/tests/real/motion_blur.frag.expected deleted file mode 100644 index f7db57eb..00000000 --- a/tests/real/motion_blur.frag.expected +++ /dev/null @@ -1,42 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef MOTION_BLUR_FRAG_EXPECTED_ -# define MOTION_BLUR_FRAG_EXPECTED_ -# define VAR_RESOLUTION "v" -# define VAR_TEX0 "i" -# define VAR_TEX1 "f" -# define VAR_TEX2 "o" -# define VAR_TEX3 "e" -# define VAR_TIME "y" - -const char *motion_blur_frag = - "uniform vec2 v;" - "uniform float y;" - "uniform sampler2D i,f,o,e;" - "vec3 s(in vec2 v,float s)" - "{" - "vec2 f;" - "float c=s+y,x=atan(v.y,v.x),o=sqrt(dot(v,v)),e=o*(1.+.5*cos(c*1.7));" - "f.x=.1*c+.05*v.y+.05*cos(-c+x*3.)/e;" - "f.y=.1*c+.05*v.x+.05*sin(-c+x*3.)/e;" - "float r=.8-.2*cos(c+3.*x);" - "vec3 m=texture2D(i,f).xyz*r;" - "return m*m;" - "}" - "void main()" - "{" - "vec2 i=-1.+2.*gl_FragCoord.xy/v.xy;" - "vec3 c=vec3(0.);" - "float f=0.;" - "for(int r=0;r<20;r++)" - "{" - "vec3 m=s(i,f);" - "c+=m;" - "f+=.02;" - "}" - "c/=20.;" - "gl_FragColor=vec4(3.*c,1.);" - "}"; - -#endif // MOTION_BLUR_FRAG_EXPECTED_ diff --git a/tests/real/multitexture.frag.expected b/tests/real/multitexture.frag.expected deleted file mode 100644 index 189338bc..00000000 --- a/tests/real/multitexture.frag.expected +++ /dev/null @@ -1,23 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef MULTITEXTURE_FRAG_EXPECTED_ -# define MULTITEXTURE_FRAG_EXPECTED_ -# define VAR_RESOLUTION "m" -# define VAR_TEX0 "y" -# define VAR_TEX1 "z" -# define VAR_TIME "x" - -const char *multitexture_frag = - "uniform vec2 m;" - "uniform float x;" - "uniform sampler2D y,z;" - "void main()" - "{" - "vec2 r=-1.+2.*gl_FragCoord.xy/m.xy,c=vec2(cos(.5*x),sin(.5*x));" - "mat2 s=.5*c.x*mat2(c.x,-c.y,c.y,c.x);" - "vec3 v=texture2D(y,s*r).xyz,t=texture2D(z,.5*r+sin(.1*x)).xyz,e=t*v;" - "gl_FragColor=vec4(e,1.);" - "}"; - -#endif // MULTITEXTURE_FRAG_EXPECTED_ diff --git a/tests/real/postprocessing.frag.expected b/tests/real/postprocessing.frag.expected deleted file mode 100644 index 1c735a5e..00000000 --- a/tests/real/postprocessing.frag.expected +++ /dev/null @@ -1,34 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef POSTPROCESSING_FRAG_EXPECTED_ -# define POSTPROCESSING_FRAG_EXPECTED_ -# define VAR_RESOLUTION "x" -# define VAR_TEX0 "v" -# define VAR_TEX1 "c" -# define VAR_TEX2 "s" -# define VAR_TEX3 "z" -# define VAR_TIME "y" - -const char *postprocessing_frag = - "uniform vec2 x;" - "uniform float y;" - "uniform sampler2D v,c,s,z;" - "void main()" - "{" - "vec2 s=gl_FragCoord.xy/x.xy,c=.5+(s-.5)*(.9+.1*sin(.2*y));" - "vec3 z=texture2D(v,vec2(s.x,1.-s.y)).xyz,u;" - "u.x=texture2D(v,vec2(c.x+.003,-c.y)).x;" - "u.y=texture2D(v,vec2(c.x,-c.y)).y;" - "u.z=texture2D(v,vec2(c.x-.003,-c.y)).z;" - "u=clamp(u*.5+.5*u*u*1.2,0.,1.);" - "u*=.5+8.*c.x*c.y*(1.-c.x)*(1.-c.y);" - "u*=vec3(.8,1.,.7);" - "u*=.9+.1*sin(10.*y+c.y*1000.);" - "u*=.97+.03*sin(110.*y);" - "float r=smoothstep(.2,.7,sin(y));" - "u=mix(u,z,clamp(-2.+2.*s.x+3.*r,0.,1.));" - "gl_FragColor=vec4(u,1.);" - "}"; - -#endif // POSTPROCESSING_FRAG_EXPECTED_ diff --git a/tests/real/quaternion.frag.expected b/tests/real/quaternion.frag.expected deleted file mode 100644 index 7cd124a6..00000000 --- a/tests/real/quaternion.frag.expected +++ /dev/null @@ -1,87 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef QUATERNION_FRAG_EXPECTED_ -# define QUATERNION_FRAG_EXPECTED_ -# define VAR_RESOLUTION "v" -# define VAR_TEX0 "f" -# define VAR_TEX1 "i" -# define VAR_TEX2 "d" -# define VAR_TEX3 "k" -# define VAR_TIME "w" - -const char *quaternion_frag = - "uniform vec2 v;" - "uniform float w;" - "uniform sampler2D f,i,d,k;" - "float t(in vec3 v,in vec3 w,in vec4 d,out float f)" - "{" - "float i,x,r,k,y=1000.;" - "vec4 s,u;" - "f=0.;" - "for(k=0.;k<6.;k+=r)" - "{" - "f+=1.;" - "vec3 t=v+k*w;" - "s=vec4(t,(d.y+d.x)*.3);" - "x=1.;" - "i=dot(s,s);" - "for(int n=0;n<9;n++)" - "{" - "x*=4.*i;" - "u.x=s.x*s.x-dot(s.yzw,s.yzw);" - "u.yzw=2.*s.x*s.yzw;" - "s=u+d;" - "i=dot(s,s);" - "if(i>4.)" - "break;" - "}" - "r=.25*sqrt(i/x)*log(i);" - "if(r<.0005)" - "{" - "y=k;" - "break;" - "}" - "}" - "return y;" - "}" - "vec3 t(in vec3 v,in vec4 w)" - "{" - "vec4 s,i,f[4],d=vec4(v,(w.y+w.x)*.3);" - "f[0]=vec4(1.,0.,0.,0.);" - "f[1]=vec4(0.,1.,0.,0.);" - "f[2]=vec4(0.,0.,1.,0.);" - "for(int n=0;n<9;n++)" - "{" - "vec4 x=vec4(d.x,-d.y,-d.z,-d.w);" - "f[0]=vec4(dot(x,f[0]),d.x*f[0].yzw+f[0].x*d.yzw);" - "f[1]=vec4(dot(x,f[1]),d.x*f[1].yzw+f[1].x*d.yzw);" - "f[2]=vec4(dot(x,f[2]),d.x*f[2].yzw+f[2].x*d.yzw);" - "s.x=dot(d,x);" - "s.yzw=2.*d.x*d.yzw;" - "d=s+w;" - "if(dot(d,d)>4.)" - "break;" - "}" - "return normalize(vec3(dot(d,f[0]),dot(d,f[1]),dot(d,f[2])));" - "}" - "void main()" - "{" - "vec2 d=-1.+2.*gl_FragCoord.xy/v.xy;" - "vec3 f=vec3(0.);" - "vec4 x=vec4(.7*cos(.5*w),.7*sin(.3*w),.7*cos(w),0.);" - "vec3 s=normalize(vec3(d,1.)),i=vec3(0.,0.,-2.);" - "float k,r=t(i,s,x,k);" - "if(r<100.)" - "{" - "vec3 n=i+r*s,y=t(n,x);" - "float c=.5+.5*dot(y,vec3(.57703));" - "k=max(1.-k*.005,0.);" - "f=vec3(1.,.9,.5)*c*k+.5*vec3(.6,.7,.8)*k;" - "}" - "else" - " f=vec3(.5,.51,.52)+vec3(.5,.47,.45)*d.y;" - "gl_FragColor=vec4(f,1.);" - "}"; - -#endif // QUATERNION_FRAG_EXPECTED_ diff --git a/tests/real/radial_blur.frag.expected b/tests/real/radial_blur.frag.expected deleted file mode 100644 index 2e92b214..00000000 --- a/tests/real/radial_blur.frag.expected +++ /dev/null @@ -1,44 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef RADIAL_BLUR_FRAG_EXPECTED_ -# define RADIAL_BLUR_FRAG_EXPECTED_ -# define VAR_RESOLUTION "v" -# define VAR_TEX0 "i" -# define VAR_TEX1 "y" -# define VAR_TEX2 "e" -# define VAR_TEX3 "z" -# define VAR_TIME "s" - -const char *radial_blur_frag = - "uniform vec2 v;" - "uniform float s;" - "uniform sampler2D i,y,e,z;" - "vec3 t(in vec2 v)" - "{" - "vec2 y,x=vec2(sin(1.1*s+v.x),sin(1.2*s+v.y));" - "float t=atan(x.y,x.x),e=sqrt(dot(x,x));" - "y.x=sin(s)+v.x*sqrt(e*e+1.);" - "y.y=sin(.6+1.1*s)+v.y*sqrt(e*e+1.);" - "return texture2D(i,y*.5).xyz;" - "}" - "void main()" - "{" - "vec2 s=-1.+2.*gl_FragCoord.xy/v.xy,x=s;" - "vec3 y=vec3(0.);" - "vec2 z=(vec2(0.,0.)-s)/40.;" - "float f=1.;" - "for(int e=0;e<40;e++)" - "{" - "vec3 r=t(x);" - "r=smoothstep(.1,1.,r*r);" - "y+=f*r;" - "f*=.99;" - "x+=z;" - "}" - "y/=40.;" - "float e=1.5/(1.+dot(s,s));" - "gl_FragColor=vec4(y*e,1.);" - "}"; - -#endif // RADIAL_BLUR_FRAG_EXPECTED_ diff --git a/tests/real/relief_tunnel.frag.expected b/tests/real/relief_tunnel.frag.expected deleted file mode 100644 index 7290c7f6..00000000 --- a/tests/real/relief_tunnel.frag.expected +++ /dev/null @@ -1,35 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef RELIEF_TUNNEL_FRAG_EXPECTED_ -# define RELIEF_TUNNEL_FRAG_EXPECTED_ -# define VAR_RESOLUTION "s" -# define VAR_TEX0 "y" -# define VAR_TEX1 "o" -# define VAR_TEX2 "t" -# define VAR_TEX3 "z" -# define VAR_TIME "c" - -const char *relief_tunnel_frag = - "uniform vec2 s;" - "uniform float c;" - "uniform sampler2D y,o,t,z;" - "void main()" - "{" - "vec2 o=-1.+2.*gl_FragCoord.xy/s.xy,z;" - "float m=sqrt(dot(o,o)),x=atan(o.y,o.x)+.5*sin(.5*m-.5*c),f=.5+.5*cos(7.*x);" - "f=smoothstep(0.,1.,f);" - "f=smoothstep(0.,1.,f);" - "f=smoothstep(0.,1.,f);" - "f=smoothstep(0.,1.,f);" - "z.x=c+1./(m+.2*f);" - "z.y=3.*x/3.1416;" - "float r=(.5+.5*f)*m*m;" - "vec3 v=texture2D(y,z).xyz;" - "float t=.5+.5*cos(7.*x);" - "t=smoothstep(0.,.4,t)-smoothstep(.4,.7,t);" - "t=1.-.5*t*m;" - "gl_FragColor=vec4(v*r*t,1.);" - "}"; - -#endif // RELIEF_TUNNEL_FRAG_EXPECTED_ diff --git a/tests/real/slisesix.frag.expected b/tests/real/slisesix.frag.expected deleted file mode 100644 index 1fd815ca..00000000 --- a/tests/real/slisesix.frag.expected +++ /dev/null @@ -1,256 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SLISESIX_FRAG_EXPECTED_ -# define SLISESIX_FRAG_EXPECTED_ -# define VAR_RESOLUTION "v" -# define VAR_TEX0 "i" -# define VAR_TIME "f" - -const char *slisesix_frag = - "#extension GL_EXT_gpu_shader4:enable\n" - "uniform vec2 v;" - "uniform float f;" - "uniform sampler2D i;" - "int t(in int v)" - "{" - "return v=v<<13^v,v*(v*v*15731+789221)+1376312589&2147483647;" - "}" - "float n(in int v)" - "{" - "return float(t(v));" - "}" - "float p(in vec3 v)" - "{" - "ivec3 f=ivec3(floor(v));" - "vec3 i=fract(v);" - "i=i*i*(3.-2.*i);" - "int x=f.x+f.y*57+f.z*113;" - "float s=mix(mix(mix(n(x+0),n(x+1),i.x),mix(n(x+57),n(x+58),i.x),i.y),mix(mix(n(x+113),n(x+114),i.x),mix(n(x+170),n(x+171),i.x),i.y),i.z);" - "return 1.-s*9.31323e-10;" - "}" - "float s(in vec3 v)" - "{" - "return.5*p(v)+.25*p(v*2.)+.125*p(v*4.)+.0625*p(v*8.);" - "}" - "float n(in float v,in float f)" - "{" - "f=1.-f;" - "if(v<.1||v>.9)" - "return f;" - "v=v-.5;" - "return-(sqrt(v*v+f*f)-.4);" - "}" - "float p(in vec3 v,in vec3 y)" - "{" - "vec3 i=max(abs(v)-y,0.);" - "return dot(i,i);" - "}" - "float n(in float v,in float i,in float x,in float y,in float f)" - "{" - "vec3 s=vec3(v,i,x);" - "float m=p(s,vec3(.14,1.,.14));" - "if(m>y*y)" - "return y+1.;" - "float z=i-.4,n=i-.35,o=i-1.,t=p(s,vec3(.1,1.,.1)),r=p(s,vec3(.12,.4,.12)),c=p(s,vec3(.05,.35,.14)),D=p(s,vec3(.14,.35,.05)),e=p(vec3(v,o,x),vec3(.14,.02,.14)),a=p(vec3((v-z)*.7071,(z+v)*.7071,x),vec3(.07071,.07071,.12)),l=p(vec3(v,(z+x)*.7071,(x-z)*.7071),vec3(.12,.07071,.07071)),d=p(vec3((v-n)*.7071,(n+v)*.7071,x),vec3(.07071,.07071,.14)),u=p(vec3(v,(n+x)*.7071,(x-n)*.7071),vec3(.14,.07071,.07071)),k=min(min(min(t,r),min(c,D)),min(min(a,l),min(d,u)));" - "k=min(k,e);" - "return k;" - "}" - "float s(vec3 v,in float f)" - "{" - "v-=vec3(.64,.5,1.5);" - "float i=dot(v,v),y=smoothstep(0.,.5,i),s=.75+.25*y,m=.8+.2*y;" - "v.x*=s;" - "v.y*=m;" - "v.z*=s;" - "i=dot(v,v);" - "float x=sqrt(i),z=1.-smoothstep(0.,.75,x);" - "z*=.4;" - "float n=sin(z),o=cos(z);" - "v.xy=mat2(o,n,-n,o)*v.xy;" - "float r=100000.,e=.05+sqrt(dot(v.xz,v.xz)),k=.46625-6.*e*exp2(-10.*e);" - "for(int t=1;t<7;t++)" - "{" - "float c=.897586*float(t),D=c+.4*e*p(vec3(4.*e,2.5,c))+.29,a=cos(D),l=sin(D);" - "vec3 d=vec3(v.x*a-v.z*l,v.y+k,v.x*l+v.z*a);" - "float u=dot(d.yz,d.yz);" - "if(d.x>0.&&d.x<1.5&&u>10&7)>6)" - "a=1.;" - "x+=.005*a;" - "y=x;" - "i=0;" - "if(a>1e-07)" - "i=2;" - "float e=fract(v.x+128.),r=fract(v.z+128.);" - "if(v.y>1.)" - "{" - "x=max(n(e,v.y),n(r,v.y));" - "if(x>9&15)/14.;" - "I=.51+.34*I;" - "l*=I;" - "float L=1.;" - "if((D&256)!=0)" - "L=-1.;" - "float M=sin(64.*k.z*L+64.*k.x+4.*E);" - "M=smoothstep(.25,.5,M)-smoothstep(.5,.75,M);" - "l+=M*vec3(.15);" - "}" - "else" - " if(d==2)" - "l=vec3(0.);" - "else" - " if(d==1)" - "{" - "float M=s(16.*k),E=sin(64.*k.z+64.*k.x+4.*M);" - "E=smoothstep(.3,.5,E)-smoothstep(.5,.7,E);" - "l=vec3(.59)+M*vec3(.17,.18,.21)+E*vec3(.15)+vec3(F);" - "}" - "else" - " if(d==4)" - "{" - "float M=s(16.*k);" - "l=vec3(.82,.73,.65)+M*vec3(.1);" - "float I=.9+.1*s(32.*k);" - "l*=I;" - "float E=max(-dot(u,e),0.);" - "l-=vec3(E*E*.45);" - "g=clamp((u.y-u.z)*.707,0.,1.);" - "g=.2*pow(g,32.);" - "}" - "else" - "{" - "float M=s(16.*k);" - "l=vec3(.64,.61,.59)+M*vec3(.21,.19,.19)+F;" - "}" - "float M,E=0.,I=10.;" - "for(int L=0;L<5;L++)" - "{" - "float w=.01+.015*float(L*L);" - "vec3 T=u*w+k;" - "int X,j;" - "float A=n(T,X,j);" - "M=-(A-w);" - "E+=M*I;" - "I*=.5;" - "}" - "M=1.-clamp(E,0.,1.);" - "float L=0.;" - "for(int w=0;w<6;w++)" - "{" - "float T=float(w)/6.,j=.01+T;" - "vec3 X=G*j+k;" - "int A,B;" - "float H=n(X,A,B);" - "L+=(1.-T)*H*2.*(10./6.);" - "}" - "C*=clamp((L-.4)*1.5,0.,1.);" - "l=vec3(g)+l*(M*vec3(.25,.3,.35)+C*vec3(1.95,1.65,1.05));" - "l=l*exp2(-.4*r);" - "}" - "l=(sqrt(l)*.7+.3*l)*vec3(.83,1.,.83)*1.2;" - "l*=.25+.75*clamp(.6*abs(i.x-1.)*abs(i.x+1.),0.,1.);" - "gl_FragColor=vec4(l,1.);" - "}"; - -#endif // SLISESIX_FRAG_EXPECTED_ diff --git a/tests/real/square_tunnel.frag.expected b/tests/real/square_tunnel.frag.expected deleted file mode 100644 index 2bd8ddf7..00000000 --- a/tests/real/square_tunnel.frag.expected +++ /dev/null @@ -1,27 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SQUARE_TUNNEL_FRAG_EXPECTED_ -# define SQUARE_TUNNEL_FRAG_EXPECTED_ -# define VAR_RESOLUTION "f" -# define VAR_TEX0 "y" -# define VAR_TEX1 "x" -# define VAR_TEX2 "o" -# define VAR_TEX3 "z" -# define VAR_TIME "m" - -const char *square_tunnel_frag = - "uniform vec2 f;" - "uniform float m;" - "uniform sampler2D y,x,o,z;" - "void main()" - "{" - "vec2 x=-1.+2.*gl_FragCoord.xy/f.xy,z;" - "float o=pow(pow(x.x*x.x,16.)+pow(x.y*x.y,16.),1./32.);" - "z.x=.5*m+.5/o;" - "z.y=atan(x.y,x.x)/3.1416;" - "vec3 r=texture2D(y,z).xyz;" - "gl_FragColor=vec4(r*o*o*o,1.);" - "}"; - -#endif // SQUARE_TUNNEL_FRAG_EXPECTED_ diff --git a/tests/real/star.frag.expected b/tests/real/star.frag.expected deleted file mode 100644 index c59fe70b..00000000 --- a/tests/real/star.frag.expected +++ /dev/null @@ -1,31 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef STAR_FRAG_EXPECTED_ -# define STAR_FRAG_EXPECTED_ -# define VAR_MOUSE "f" -# define VAR_RESOLUTION "v" -# define VAR_TEX0 "m" -# define VAR_TEX1 "y" -# define VAR_TEX2 "o" -# define VAR_TEX3 "z" -# define VAR_TIME "c" - -const char *star_frag = - "uniform float c;" - "uniform vec2 v;" - "uniform vec4 f;" - "uniform sampler2D m,y,o,z;" - "void main()" - "{" - "vec2 f,y=-1.+2.*gl_FragCoord.xy/v.xy;" - "float x=atan(y.y,y.x),o=sqrt(dot(y,y)),z=o*(1.+.8*cos(c));" - "f.x=.02*y.y+.03*cos(-c+x*3.)/z;" - "f.y=.1*c+.02*y.x+.03*sin(-c+x*3.)/z;" - "float u=.9+pow(max(1.5-o,0.),4.);" - "u*=.6+.4*cos(c+3.*x);" - "vec3 r=texture2D(m,f).xyz;" - "gl_FragColor=vec4(r*u,1.);" - "}"; - -#endif // STAR_FRAG_EXPECTED_ diff --git a/tests/real/sult.frag.expected b/tests/real/sult.frag.expected deleted file mode 100644 index 4db1d1a1..00000000 --- a/tests/real/sult.frag.expected +++ /dev/null @@ -1,59 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SULT_FRAG_EXPECTED_ -# define SULT_FRAG_EXPECTED_ -# define VAR_RESOLUTION "r" -# define VAR_TIME "c" - -const char *sult_frag = - "float v=5.,z=.9,y=0.,a=90.,x=0.;" - "vec3 m=vec3(1,1,1),n=vec3(0,0,1),s=vec3(0,0,1.5);" - "uniform vec2 r;" - "uniform float c;" - "vec3 e(vec3 v,float m)" - "{" - "return vec3(v.x*cos(m)+v.z*sin(m),v.y,v.z*cos(m)-v.x*sin(m));" - "}" - "vec3 t(vec3 v,float m)" - "{" - "return vec3(v.y*cos(m)+v.z*sin(m),v.x,v.z*cos(m)-v.y*sin(m));" - "}" - "float f=0.,w=10.;" - "float e(vec3 m)" - "{" - "float y=c,w,z=0.,g,x,a;" - "vec3 r;" - "m+=(sin(m.zxy*1.7+y)+sin(m.yzx+y*3.))*.2;" - "if(v<6.)" - "z=length(m.xyz*vec3(1,1,.1)-vec3(0,-.1,y*.15-.3))-.34;" - "else" - " z=length(m.xy+vec2(0.,.7))-.3+(sin(m.z*17.+y*.6)+sin(m.z*2.)*6.)*.01;" - "m.xy=vec2(atan(m.x,m.y)*1.113,1.6-length(m.xy)-sin(y*2.)*.3);" - "r=fract(m.xzz+.5).xyz-.5;" - "r.y=(m.y-.35)*1.3;" - "w=max(abs(m.y-.3)-.05,abs(length(fract(m.xz)-.5)-.4)-.03);" - "f=step(z,w);" - "return min(min(w,z),m.y-.2);" - "}" - "vec3 d=vec3(.19,.2,.24),o=vec3(1),l=vec3(.45,.01,0),g=vec3(.17,0,0);" - "void main()" - "{" - "vec2 t=-1.+2.*gl_FragCoord.xy/r.xy;" - "vec3 i=normalize(e(e(vec3(t.y*z,t.x*z*1.33,1),-y*.035).yxz,(a+x*c)*.035)),p=n+s*c;" - "float h=1.,u=0.,C,F,b=0.,j,k,q,A;" - "vec3 B=vec3(.01,0,0),D=B.yyy,E;" - "while(h>.1)" - "{" - "for(C=b,F=1.;C.005;C+=F)" - "F=e(p+i*C);" - "if(C.01)" - "{" - "for(int e=0;e<10;e++)" - "f.xy-=V.xy*.01,x+=tex2D(t,f.xy);" - "x*=.1;" - "}" - "else" - " x=tex2D(t,f.xy);" - "f=oUV.xy;" - "if(s>186.)" - "if(s<242.)" - "if(f.x>.5)" - "f.x=1.-f.x;" - "float e=tex2D(t,f.xy).x;" - "if(v>169.)" - "if(v<184.)" - "{" - "if(f.y>.5)" - "f.y=1.-f.y;" - "}" - "if(v<197.)" - "if(v>184.)" - "{" - "if(f.x>.5)" - "f.x=1.-f.x;" - "}" - "if(v<86.)" - "if(v>26.5)" - "if(f.x>.5)" - "f.x=1.-f.x;" - "if(v>98.)" - "if(v<106.)" - "{" - "float g=(f.x-.5)/(f.y-.5);" - "g=atan(g);" - "float l=length(f.xy-vec2(.5));" - "vec2 m;" - "m.x=l*sin(g)+.5;" - "m.y=l*cos(g)+.5;" - "f=m;" - "}" - "x=tex2D(t,f.xy);" - "x+=tex2D(p,f.xy);" - "vec4 g=x;" - "if(v>86.&&v<104.)" - "{" - "float l=x.y;" - "x=tex2D(t,f.xy);" - "x+=tex2D(p,f.xy);" - "vec4 m=vec4(tex2D(t,f.xy).x)+vec4(tex2D(p,f.xy).x);" - "if(l>.9)" - "x*=100.;" - "float z=(v-92.)*.125;" - "z=clamp(z,0.,1.);" - "x=x+(m-x)*z;" - "}" - "if(v>104.)" - "{" - "float l=x.y,z=x.z,m=(v-123.)*.25;" - "m=clamp(m,0.,1.);" - "m=0.;" - "float a=f.x;" - "if(s<186.)" - "if(f.x>.5+m)" - "f.x=1.-f.x;" - "x=vec4(tex2D(t,f.xy).x)+vec4(tex2D(p,f.xy).x);" - "if(l>.9)" - "x*=1.7*vec4(.7,.8,1.,0.);" - "m=(v-131.)*.3;" - "if(s>186.)" - ";" - "m=(v-129.)*.25;" - "m=clamp(m,0.,1.);" - "x=x+(g-x)*m;" - "}" - "x+=vec4(i*i*oUV.y)*.25;" - "float m=1.9;" - "if(v>140.)" - "m=1.2;" - "if(x.z>m)" - "{" - "float l=pow(sin(f.x*5.),5.);" - "if(l>.5)" - "l=-1.;" - "else" - " l=1.;" - "float z=pow(1.1*sin(5.*v+2000.*f.x)*sin(2000.*f.y),8.);" - "z*=pow(1.1*sin(l*-15.*v+200.*f.x)*sin(l*-10.*v+200.*f.y),8.);" - "if(z>0.)" - "x*=0.;" - "}" - "if(v<250.)" - "if(length(x)<.1)" - "{" - "float l=pow(sin(f.x*15.),5.);" - "if(l>.5)" - "l=-1.;" - "else" - " l=1.;" - "float z=pow(1.1*sin(5.*v+2000.*f.x)*sin(2000.*f.y),8.);" - "z*=pow(1.1*sin(l*-5.*v+400.*f.x)*sin(l*-10.*v+400.*f.y),8.);" - "float a=(v-32.)*.125;" - "a=clamp(a,0.,1.);" - "if(z>.04)" - "x+=a*vec4(.43)*vec4(.7,1.,1.,1.)*pow(1.-oUV.y,2.);" - "}" - "float l=v-230.;" - "l=clamp(l,0.,1.);" - "if(s>230.)" - "x*=l;" - "float z=min(length(vec2(2.,.5)*(oUV.xy-vec2(.5,.4))),length(vec2(.5,2.)*(oUV.xy-vec2(.5,.4))));" - "z=1.-z;" - "z=clamp(z,0.,1.);" - "z=pow(z,2.);" - "z=length(vec2(2.,.5)*(oUV.xy-vec2(.5,.4)));" - "z=1.-z;" - "z=clamp(z,0.,1.);" - "z=pow(z,3.);" - "if(s<130.)" - "x*=1.+2.*c*z*vec4(.5,.7,1.,1.);" - "if(s>190.)" - "x*=1.+2.*c*z*vec4(.5,.7,1.,1.);" - "vec4 a=vec4(pow(x.x*1.1,3.),pow(x.y*1.1,3.),pow(x.z*1.1,3.),pow(x.z*1.1,2.));" - "if(v>86.)" - "x=vec4(x.x)+(a-vec4(x.x))*.3;" - "else" - " x=vec4(x.y)+(.8*a-vec4(x.y))*.25;" - "gl_FragData[0]=x;" - "gl_FragData[1]=x;" - "}"; - -#endif // F_BLURPASS_CPP_EXPECTED_ diff --git a/tests/real/the wind under my wings/f_blurpass2.cpp.expected b/tests/real/the wind under my wings/f_blurpass2.cpp.expected deleted file mode 100644 index fdf3bad3..00000000 --- a/tests/real/the wind under my wings/f_blurpass2.cpp.expected +++ /dev/null @@ -1,80 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef F_BLURPASS2_CPP_EXPECTED_ -# define F_BLURPASS2_CPP_EXPECTED_ -# define VAR_FLO "e" -# define VAR_LIMIT "f" -# define VAR_MOTIONBLUR "v" -# define VAR_POSY "r" -# define VAR_TEXTURE2D_1 "t" -# define VAR_TEXTURE2D_2 "o" -# define VAR_TEXTURE2D_RANDOM "y" -# define VAR_TEXTURE2D_VELOCITIES "i" - -const char *f_blurpass2_cpp = - "#version 110\n" - "#define float4 vec4\n" - "#define float3 vec3\n" - "#define float2 vec2\n" - "#define oUV gl_TexCoord[0]\n" - "#define tex3D texture3D\n" - "#define tex2D texture2D\n" - "#define tex1D texture1D\n" - "uniform sampler2D t,i,o,y;" - "uniform float f,e,r;" - "uniform vec3 v;" - "void main()" - "{" - "vec2 f=vec2(0.,0.);" - "float2 o=oUV.xy;" - "float4 y=tex2D(t,o.xy);" - "y=float4(0.);" - "float3 g=tex2D(i,o.xy).xyz;" - "g.xyz-=float3(.5);" - "g*=2.;" - "float u=length(g.xyz);" - "u=clamp(u,0.,1.);" - "g*=.01;" - "if(u>.01)" - "{" - "for(int m=0;m<10;m++)" - "o.xy-=g.xy,y+=tex2D(t,o.xy);" - "y*=.1;" - "}" - "else" - " y=tex2D(t,o.xy);" - "float4 m=tex2D(t,oUV.xy);" - "y=y+(m-y)*.5;" - "o=oUV.xy;" - "float r=length(float2(1.,2.)*(o.xy-float2(.5)));" - "r*=r;" - "float e=1.+gl_Color.x*5.;" - "e=clamp(e,1.,100.);" - "int s=0;" - "{" - "for(int l=-3;l<3;l++)" - "{" - "for(int a=-3;a<3;a++)" - "{" - "s++;" - "float2 c=float2(a,l);" - "if(a==l)" - ";" - "float2 z=float2(a,l)*.0025*r;" - "z=c*.0018*r*e;" - "z+=f;" - "f+=v.xy*.01;" - "y+=tex2D(t,o.xy+z);" - "}" - "}" - "y/=float(s)*(r+(1.-r)*.85);" - "}" - "vec4 l=y*1.03;" - "l+=gl_Color;" - "y=l;" - "gl_FragData[0]=y;" - "gl_FragData[1]=y;" - "}"; - -#endif // F_BLURPASS2_CPP_EXPECTED_ diff --git a/tests/real/the wind under my wings/f_combineSSAO.cpp.expected b/tests/real/the wind under my wings/f_combineSSAO.cpp.expected deleted file mode 100644 index f013699b..00000000 --- a/tests/real/the wind under my wings/f_combineSSAO.cpp.expected +++ /dev/null @@ -1,82 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef F_COMBINESSAO_CPP_EXPECTED_ -# define F_COMBINESSAO_CPP_EXPECTED_ -# define VAR_LIMIT "y" -# define VAR_PROJECTIONMATRIX "f" -# define VAR_FTTIME "a" -# define VAR_TEXTURE2D_1 "v" -# define VAR_TEXTURE2D_2 "o" -# define VAR_TEXTURE2D_3 "t" -# define VAR_TEXTURE2D_PROJECTED "n" -# define VAR_TEXTURE2D_RANDOM "d" - -const char *f_combineSSAO_cpp = - "#version 110\n" - "#define float4 vec4\n" - "#define float3 vec3\n" - "#define float2 vec2\n" - "#define oUV gl_TexCoord[0]\n" - "#define tex3D texture3D\n" - "#define tex2D texture2D\n" - "#define tex1D texture1D\n" - "#define SSAO se=ep+ddd*sign (dot (ray,norm))*ray;occluderFragment=tex2D(texture2d_1,se.xy);shadow=occluderFragment.w;occluderFragment.a=tex2D (texture2d_2,se.xy).x;occNorm=(occluderFragment.xyz*2.0)-vec3 (1.0);depthDifference=depth-occluderFragment.a;normDiff=1.0-1.0*dot(occNorm,norm);addition=step(0.00002,depthDifference)*normDiff*(1.0-smoothstep(0.000002,0.20,depthDifference));bl+=addition;\n" - "uniform sampler2D v,o,t,n,d;" - "uniform float y,a;" - "uniform mat4 f;" - "void main()" - "{" - "float4 f;" - "float n;" - "vec3 m=normalize(texture2D(d,oUV.xy*2.+float2(y)).xyz*2.-vec3(1.));" - "n=tex2D(o,oUV.xy).x;" - "vec3 e=vec3(oUV.xy,n);" - "float r=0.;" - "vec3 s,x,w;" - "float g,c;" - "float3 i=(tex2D(v,oUV.xy).xyz-.5)*2.;" - "float4 S=float4(0.);" - "r=1.;" - "float l=.002,D,u;" - "vec4 U;" - "bool b;" - "b=true;" - "if(b)" - "{" - "s=reflect(vec3(.538125,.18566,-.43192),m);" - "SSAO V=reflect(vec3(.137907,.248642,.443018),m),F=reflect(vec3(.33715,.567941,-.0057895),m),p=reflect(vec3(-.699981,-.0451144,-.00199656),m),h=reflect(vec3(.0689631,-.159831,-.854778),m),z=reflect(vec3(.0560994,.00695497,-.184335),m),A=reflect(vec3(-.0146536,.140278,.0762037),m),N=reflect(vec3(.0100199,-.192422,-.0344434),m),O=reflect(vec3(-.357756,-.530197,-.435812),m),C=reflect(vec3(-.316922,.106361,.0158609),m),T=reflect(vec3(.0103503,-.586983,.00462939),m),j=reflect(vec3(-.0897291,-.494082,.32879),m),k=reflect(vec3(.711999,-.015469,-.0918372),m),q=reflect(vec3(-.0533823,.0596758,-.54119),m),B=reflect(vec3(.0352677,-.0631886,.546027),m),E=1.-E*.09*5.1;" - "}" - "i=normalize(i);" - "float z=1.;" - "gl_FragData[0]=r*z*tex2D(t,oUV.xy);" - "gl_FragData[0]=tex2D(v,oUV.xy);" - "gl_FragData[1]=tex2D(t,oUV.xy);" - "int p=0;" - "vec4 V=vec4(0.),F=vec4(0.);" - "for(int h=-3;h<4;h++)" - "{" - "for(int A=-3;A<4;A++)" - "{" - "p++;" - "float2 N=float2(A,h)*.0005+oUV.xy;" - "V+=tex2D(v,N);" - "}" - "}" - "V/=float(p);" - "F/=float(p);" - "vec4 h=tex2D(v,oUV.xy);" - "V*=2.;" - "V-=vec4(1.);" - "h*=2.;" - "h-=vec4(1.);" - "float A=length(V.xyz-h.xyz);" - "A=4.+3.8*(1.-max(A,abs(dot(V,h))));" - "A+=.4;" - "gl_FragData[0]=tex2D(t,oUV.xy)*vec4(A);" - "gl_FragData[0]*=1.-vec4(pow(tex2D(o,oUV.xy).x,30.));" - "if(a>260.)" - "gl_FragData[0]=tex2D(t,oUV.xy);" - "}"; - -#endif // F_COMBINESSAO_CPP_EXPECTED_ diff --git a/tests/real/the wind under my wings/f_godrays.cpp.expected b/tests/real/the wind under my wings/f_godrays.cpp.expected deleted file mode 100644 index 7a4e2a62..00000000 --- a/tests/real/the wind under my wings/f_godrays.cpp.expected +++ /dev/null @@ -1,55 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef F_GODRAYS_CPP_EXPECTED_ -# define F_GODRAYS_CPP_EXPECTED_ -# define VAR_LIMIT "f" -# define VAR_TEXTURE2D_1 "t" - -const char *f_godrays_cpp = - "#version 110\n" - "#define float4 vec4\n" - "#define float3 vec3\n" - "#define float2 vec2\n" - "#define oUV gl_TexCoord[0]\n" - "#define tex3D texture3D\n" - "#define tex2D texture2D\n" - "#define tex1D texture1D\n" - "uniform sampler2D t;" - "uniform float f;" - "void main()" - "{" - "float f=.102,o=1.-pow(length(oUV.xy-float2(.5,.5)),1.);" - "float2 V=float2(.5,.5);" - "f*=o*o;" - "float2 v=float2(f,0.),e=float2(0.,f);" - "V.y*=1.;" - "vec4 g=float4(0.);" - "float4 m=tex2D(t,oUV.xy);" - "g+=.191*tex2D(t,oUV.xy);" - "g+=.18145*tex2D(t,.06975*V+.93025*oUV.xy);" - "g+=.1719*tex2D(t,.1395*V+.98605*oUV.xy);" - "g+=.16235*tex2D(t,.20925*V+.79075*oUV.xy);" - "g+=.1528*tex2D(t,.279*V+.721*oUV.xy);" - "g+=.14325*tex2D(t,.34875*V+.65125*oUV.xy);" - "g+=.1337*tex2D(t,.4185*V+.5815*oUV.xy);" - "g=tex2D(t,oUV.xy)+g*.7*float4(.4,.6,1.,0.);" - "g=vec4(0.);" - "int y=0;" - "float2 i=oUV.xy-float2(.5,.5);" - "i*=-1.;" - "for(int l=0;l<18;l++)" - "{" - "y++;" - "float2 s=i*float(l)*.05;" - "float4 u=tex2D(t,oUV.xy+s);" - "u*=u*1.5;" - "g+=u;" - "}" - "g/=float(y);" - "g=tex2D(t,oUV.xy)*.9+g*3.5;" - "gl_FragData[0]=g;" - "gl_FragData[1]=g;" - "}"; - -#endif // F_GODRAYS_CPP_EXPECTED_ diff --git a/tests/real/the wind under my wings/f_simpleblur.cpp.expected b/tests/real/the wind under my wings/f_simpleblur.cpp.expected deleted file mode 100644 index de3805c4..00000000 --- a/tests/real/the wind under my wings/f_simpleblur.cpp.expected +++ /dev/null @@ -1,42 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef F_SIMPLEBLUR_CPP_EXPECTED_ -# define F_SIMPLEBLUR_CPP_EXPECTED_ -# define VAR_LIMIT "f" -# define VAR_TEXTURE2D_1 "t" - -const char *f_simpleblur_cpp = - "#version 110\n" - "#define float4 vec4\n" - "#define float3 vec3\n" - "#define float2 vec2\n" - "#define oUV gl_TexCoord[0]\n" - "#define tex3D texture3D\n" - "#define tex2D texture2D\n" - "#define tex1D texture1D\n" - "uniform sampler2D t;" - "uniform float f;" - "void main()" - "{" - "float4 f;" - "f=vec4(0.);" - "int v=0;" - "for(int o=-6;o<7;o++)" - "{" - "for(int i=-6;i<7;i++)" - "{" - "v++;" - "float2 g=float2(i,o)*1.5,w=g*.15;" - "float4 m=tex2D(t,oUV.xy+w);" - "f+=m;" - "}" - "}" - "f/=float(v);" - "f=float4(1.,0.,0.,0.);" - "f.w=tex2D(t,oUV.xy).w;" - "gl_FragData[0]=f;" - "gl_FragData[1]=f;" - "}"; - -#endif // F_SIMPLEBLUR_CPP_EXPECTED_ diff --git a/tests/real/the wind under my wings/f_velocities.cpp.expected b/tests/real/the wind under my wings/f_velocities.cpp.expected deleted file mode 100644 index e5de5099..00000000 --- a/tests/real/the wind under my wings/f_velocities.cpp.expected +++ /dev/null @@ -1,29 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef F_VELOCITIES_CPP_EXPECTED_ -# define F_VELOCITIES_CPP_EXPECTED_ -# define VAR_NORMAL "t" -# define VAR_POSITION "v" -# define VAR_TEXTURE_COORDINATE_1 "o" -# define VAR_THECOLOR "f" - -const char *f_velocities_cpp = - "#version 110\n" - "#define float4 vec4\n" - "#define float3 vec3\n" - "#define float2 vec2\n" - "#define oUV gl_TexCoord[0]\n" - "#define tex3D texture3D\n" - "#define tex2D texture2D\n" - "#define tex1D texture1D\n" - "varying vec3 t;" - "varying vec4 v,f;" - "varying vec2 o;" - "void main()" - "{" - "float4 t=float4(1.,0.,0.,0.);" - "gl_FragData[0]=f;" - "}"; - -#endif // F_VELOCITIES_CPP_EXPECTED_ diff --git a/tests/real/the wind under my wings/v_velocities.cpp.expected b/tests/real/the wind under my wings/v_velocities.cpp.expected deleted file mode 100644 index 3677b601..00000000 --- a/tests/real/the wind under my wings/v_velocities.cpp.expected +++ /dev/null @@ -1,45 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef V_VELOCITIES_CPP_EXPECTED_ -# define V_VELOCITIES_CPP_EXPECTED_ -# define VAR_PROJECTIONMATRIX "m" -# define VAR_NORMAL "z" -# define VAR_POSITION "f" -# define VAR_TEXTURE_COORDINATE_1 "v" -# define VAR_THECOLOR "e" - -const char *v_velocities_cpp = - "#define float4 vec4\n" - "#define float3 vec3\n" - "#define float2 vec2\n" - "varying vec3 z;" - "varying vec2 v;" - "varying vec4 f,e;" - "uniform mat4 m;" - "void main()" - "{" - "mat4 z;" - "vec4 v=gl_Vertex,m;" - "float4 g=gl_TextureMatrix[0]*gl_Vertex,l=gl_TextureMatrix[1]*gl_Vertex;" - "float3 f=g.xyz-l.xyz;" - "float4 x=float4(0.,0.,0.,0.)-gl_Vertex.xyzz;" - "x=-gl_Normal.xyzz;" - "float n=dot(f.xyz,x.xyz);" - "float4 d;" - "float t=0.;" - "if(n>-0.)" - "d=g+(l-g),t=1.;" - "else" - " t=.3,d=g;" - "gl_Position=gl_ModelViewProjectionMatrix*d;" - "float3 i=d.xyz-g.xyz;" - "float4 u=i.xyzz;" - "u=gl_ModelViewProjectionMatrix*u;" - "i.xyz=u.xyz;" - "i+=float3(1.);" - "i*=.5;" - "e=i.xyzz;" - "}"; - -#endif // V_VELOCITIES_CPP_EXPECTED_ diff --git a/tests/real/to_the_road_of_ribbon.frag.expected b/tests/real/to_the_road_of_ribbon.frag.expected deleted file mode 100644 index caba3a1d..00000000 --- a/tests/real/to_the_road_of_ribbon.frag.expected +++ /dev/null @@ -1,51 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef TO_THE_ROAD_OF_RIBBON_FRAG_EXPECTED_ -# define TO_THE_ROAD_OF_RIBBON_FRAG_EXPECTED_ -# define VAR_RESOLUTION "v" -# define VAR_TIME "y" - -const char *to_the_road_of_ribbon_frag = - "uniform vec2 v;" - "uniform float y;" - "float s(vec3 y)" - "{" - "return cos(y.x)+cos(y.y*1.5)+cos(y.z)+cos(y.y*20.)*.05;" - "}" - "float n(vec3 v)" - "{" - "return length(max(abs(v-vec3(cos(v.z*1.5)*.3,-.5+cos(v.z)*.2,0.))-vec3(.125,.02,y+3.),vec3(0.)));" - "}" - "float c(vec3 y)" - "{" - "return min(s(y),n(y));" - "}" - "vec3 x(vec3 y)" - "{" - "vec3 v=vec3(.01,0,0);" - "return normalize(vec3(c(y+v.xyy),c(y+v.yxy),c(y+v.yyx)));" - "}" - "void main()" - "{" - "vec2 f=-1.+2.*gl_FragCoord.xy/v.xy;" - "f.x*=v.x/v.y;" - "vec4 i=vec4(1.);" - "vec3 m=vec3(sin(y)*.5,cos(y*.5)*.25+.25,y),r=normalize(vec3(f.x*1.6,f.y,1.)),l=m,z;" - "float e=0.;" - "for(int g=0;g<64;g++)" - "e=c(l),l+=e*r;" - "z=l;" - "float g=length(l-m)*.02;" - "r=reflect(r,x(l));" - "l+=r;" - "for(int u=0;u<64;u++)" - "e=c(l),l+=e*r;" - "i=max(dot(x(l),vec3(.1,.1,0.)),0.)+vec4(.3,cos(y*.5)*.5+.5,sin(y*.5)*.5+.5,1.)*min(length(l-m)*.04,1.);" - "if(s(z)>n(z))" - "i=mix(i,vec4(cos(y*.3)*.5+.5,cos(y*.2)*.5+.5,sin(y*.3)*.5+.5,1.),.3);" - "vec4 u=(i+vec4(g)+(1.-min(z.y+1.9,1.))*vec4(1.,.8,.7,1.))*min(y*.5,1.);" - "gl_FragColor=vec4(u.xyz,1.);" - "}"; - -#endif // TO_THE_ROAD_OF_RIBBON_FRAG_EXPECTED_ diff --git a/tests/real/tunnel.frag.expected b/tests/real/tunnel.frag.expected deleted file mode 100644 index 4fde5bd2..00000000 --- a/tests/real/tunnel.frag.expected +++ /dev/null @@ -1,27 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef TUNNEL_FRAG_EXPECTED_ -# define TUNNEL_FRAG_EXPECTED_ -# define VAR_RESOLUTION "f" -# define VAR_TEX0 "y" -# define VAR_TEX1 "o" -# define VAR_TEX2 "r" -# define VAR_TEX3 "z" -# define VAR_TIME "m" - -const char *tunnel_frag = - "uniform vec2 f;" - "uniform float m;" - "uniform sampler2D y,o,r,z;" - "void main()" - "{" - "vec2 r=-1.+2.*gl_FragCoord.xy/f.xy,z;" - "float v=atan(r.y,r.x),o=sqrt(dot(r,r));" - "z.x=.75*m+.1/o;" - "z.y=v/3.1416;" - "vec3 x=texture2D(y,z).xyz;" - "gl_FragColor=vec4(x*o,1.);" - "}"; - -#endif // TUNNEL_FRAG_EXPECTED_ diff --git a/tests/real/twist.frag.expected b/tests/real/twist.frag.expected deleted file mode 100644 index bdfca6a4..00000000 --- a/tests/real/twist.frag.expected +++ /dev/null @@ -1,27 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef TWIST_FRAG_EXPECTED_ -# define TWIST_FRAG_EXPECTED_ -# define VAR_RESOLUTION "f" -# define VAR_TEX0 "y" -# define VAR_TEX1 "o" -# define VAR_TEX2 "r" -# define VAR_TEX3 "z" -# define VAR_TIME "s" - -const char *twist_frag = - "uniform vec2 f;" - "uniform float s;" - "uniform sampler2D y,o,r,z;" - "void main()" - "{" - "vec2 r=-1.+2.*gl_FragCoord.xy/f.xy,z;" - "float x=atan(r.y,r.x),o=sqrt(dot(r,r));" - "z.x=o-.25*s;" - "z.y=cos(x*5.+2.*sin(s+7.*o));" - "vec3 m=(.5+.5*z.y)*texture2D(y,z).xyz;" - "gl_FragColor=vec4(m,1.);" - "}"; - -#endif // TWIST_FRAG_EXPECTED_ diff --git a/tests/unit/1.simple.frag.expected b/tests/unit/1.simple.frag.expected deleted file mode 100644 index 56a7d55b..00000000 --- a/tests/unit/1.simple.frag.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef 1_SIMPLE_FRAG_EXPECTED_ -# define 1_SIMPLE_FRAG_EXPECTED_ - -const char *1_simple_frag = - "void main()" - "{" - "gl_FragColor=vec4(.2,.4,.6,0.);" - "}"; - -#endif // 1_SIMPLE_FRAG_EXPECTED_ diff --git a/tests/unit/2.simple.frag.expected b/tests/unit/2.simple.frag.expected deleted file mode 100644 index 32bf29db..00000000 --- a/tests/unit/2.simple.frag.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef 2_SIMPLE_FRAG_EXPECTED_ -# define 2_SIMPLE_FRAG_EXPECTED_ - -const char *2_simple_frag = - "void main()" - "{" - "gl_FragColor=vec4(.2,.4,.6,0.);" - "}"; - -#endif // 2_SIMPLE_FRAG_EXPECTED_ diff --git a/tests/unit/2.simple.opt.frag.expected b/tests/unit/2.simple.opt.frag.expected deleted file mode 100644 index 8a880c21..00000000 --- a/tests/unit/2.simple.opt.frag.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef 2_SIMPLE_OPT_FRAG_EXPECTED_ -# define 2_SIMPLE_OPT_FRAG_EXPECTED_ - -const char *2_simple_opt_frag = - "void main()" - "{" - "gl_FragColor=vec4(.2,.4,.6,0.);" - "}"; - -#endif // 2_SIMPLE_OPT_FRAG_EXPECTED_ diff --git a/tests/unit/array.frag.expected b/tests/unit/array.frag.expected deleted file mode 100644 index 9ce04fdb..00000000 --- a/tests/unit/array.frag.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef ARRAY_FRAG_EXPECTED_ -# define ARRAY_FRAG_EXPECTED_ - -const char *array_frag = - "#version 120\n" - "float t[5]=float[5](3.4,4.2,5.,5.2,1.1);" - "const int i=5;" - "float o[i]=float[i](3.4,4.2,5.,5.2,1.1),a[]=float[](3.4,4.2,5.,5.2,1.1),f[5]=float[](3.4,4.2,5.,5.2,1.1),l[]=float[5](3.4,4.2,5.,5.2,1.1);"; - -#endif // ARRAY_FRAG_EXPECTED_ diff --git a/tests/unit/blocks.frag.expected b/tests/unit/blocks.frag.expected deleted file mode 100644 index b39886cb..00000000 --- a/tests/unit/blocks.frag.expected +++ /dev/null @@ -1,42 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef BLOCKS_FRAG_EXPECTED_ -# define BLOCKS_FRAG_EXPECTED_ - -const char *blocks_frag = - "float f()" - "{" - "int i=2;" - "float r;" - "if(i==2)" - "i++;" - "if(i<5)" - "if(i==3)" - "r=.2;" - "else" - " r=.3;" - "else" - " r=.4;" - "return r;" - "}" - "int i=5;" - "float r()" - "{" - "int r=2,f=0;" - "for(int e=0;e<4;e++)" - "r+=e;" - "for(r++;f<4;f++)" - "{" - "int e=f-1;" - "r+=e;" - "}" - "return 1./float(i);" - "}" - "void main()" - "{" - "float i=f(),e=r();" - "gl_FragColor=vec4(.2,i,e,0.);" - "}"; - -#endif // BLOCKS_FRAG_EXPECTED_ diff --git a/tests/unit/commas.frag.expected b/tests/unit/commas.frag.expected deleted file mode 100644 index 21273315..00000000 --- a/tests/unit/commas.frag.expected +++ /dev/null @@ -1,19 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef COMMAS_FRAG_EXPECTED_ -# define COMMAS_FRAG_EXPECTED_ - -const char *commas_frag = - "void f()" - "{}" - "void o()" - "{}" - "void i()" - "{" - "bool i=true;" - "if(i)" - "f(),o();" - "}"; - -#endif // COMMAS_FRAG_EXPECTED_ diff --git a/tests/unit/empty_block.frag.expected b/tests/unit/empty_block.frag.expected deleted file mode 100644 index 692729f4..00000000 --- a/tests/unit/empty_block.frag.expected +++ /dev/null @@ -1,21 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef EMPTY_BLOCK_FRAG_EXPECTED_ -# define EMPTY_BLOCK_FRAG_EXPECTED_ - -const char *empty_block_frag = - "void f()" - "{" - "int f=5,i=7;" - "if(1)" - "return 2;" - "if(f)" - ";" - "if(i)" - ";" - "more_semicolons;" - "return 3;" - "}"; - -#endif // EMPTY_BLOCK_FRAG_EXPECTED_ diff --git a/tests/unit/functions.hlsl.expected b/tests/unit/functions.hlsl.expected deleted file mode 100644 index c3bd46f1..00000000 --- a/tests/unit/functions.hlsl.expected +++ /dev/null @@ -1,15 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef FUNCTIONS_HLSL_EXPECTED_ -# define FUNCTIONS_HLSL_EXPECTED_ -# define VAR_COLOR "i" - -const char *functions_hlsl = - "static float3 i;" - "void f(out int i,int f)" - "{" - "i=f;" - "}"; - -#endif // FUNCTIONS_HLSL_EXPECTED_ diff --git a/tests/unit/hexa.frag.expected b/tests/unit/hexa.frag.expected deleted file mode 100644 index d72404c4..00000000 --- a/tests/unit/hexa.frag.expected +++ /dev/null @@ -1,14 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef HEXA_FRAG_EXPECTED_ -# define HEXA_FRAG_EXPECTED_ - -const char *hexa_frag = - "void main()" - "{" - "float f=float(255)/1000.,r=float(-255)/1000.,o=f-r+float(0);" - "gl_FragColor=vec4(.2,.4,f,0.);" - "}"; - -#endif // HEXA_FRAG_EXPECTED_ diff --git a/tests/unit/inline-aggro.aggro.expected b/tests/unit/inline-aggro.aggro.expected index 3f035df3..b2dafc44 100644 --- a/tests/unit/inline-aggro.aggro.expected +++ b/tests/unit/inline-aggro.aggro.expected @@ -110,3 +110,10 @@ int noinl11(ivec3 x) x[i++]+=1; return x[i]+i; } +int noinl12() +{ + int i=10; + while(--i>0) + ; + return 1; +} diff --git a/tests/unit/inline-aggro.expected b/tests/unit/inline-aggro.expected index 400c026c..e75bc1d9 100644 --- a/tests/unit/inline-aggro.expected +++ b/tests/unit/inline-aggro.expected @@ -118,3 +118,10 @@ int noinl11(ivec3 x) x[i++]+=1; return x[i]+i; } +int noinl12() +{ + int i=10; + while(--i>0) + ; + return 1; +} diff --git a/tests/unit/inline-aggro.frag b/tests/unit/inline-aggro.frag index 2a05dc9b..00c8eae2 100644 --- a/tests/unit/inline-aggro.frag +++ b/tests/unit/inline-aggro.frag @@ -118,3 +118,10 @@ int noinl11(in ivec3 x) { x[i++] += 1; return x[i] + i; } + +int noinl12() { + int i = 10; + while (--i > 0) { + } + return 1; +} diff --git a/tests/unit/numbers.frag.expected b/tests/unit/numbers.frag.expected deleted file mode 100644 index 725f87ad..00000000 --- a/tests/unit/numbers.frag.expected +++ /dev/null @@ -1,16 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef NUMBERS_FRAG_EXPECTED_ -# define NUMBERS_FRAG_EXPECTED_ - -const char *numbers_frag = - "void main()" - "{" - "float f=float(34)/1000.,r=float(-57)/1000.;" - "int m=65535,o=-65536;" - "float a=f-r+float(0)+float(m+o)/20.;" - "gl_FragColor=vec4(a,a,a,0.);" - "}"; - -#endif // NUMBERS_FRAG_EXPECTED_ diff --git a/tests/unit/operators.expected b/tests/unit/operators.expected index ad01da30..ce261155 100644 --- a/tests/unit/operators.expected +++ b/tests/unit/operators.expected @@ -20,4 +20,8 @@ "{" "int d=b*c*a;" "return a-b+1-d+c;" + "}" + "int other(int a,int b,int c,int d)" + "{" + "return a*b*(c*d)*(a*b);" "}", diff --git a/tests/unit/operators.frag b/tests/unit/operators.frag index bfb82ece..777a68e8 100644 --- a/tests/unit/operators.frag +++ b/tests/unit/operators.frag @@ -20,3 +20,7 @@ int no_parens2(int a, int b, int c) { int d = a*(b*c); return a - (b - 1) - (d - c); } + +int other(int a, int b, int c, int d) { + return (a*b)*(c*d)*(a*b); +} diff --git a/tests/unit/precedence.frag.expected b/tests/unit/precedence.frag.expected deleted file mode 100644 index f18d2d99..00000000 --- a/tests/unit/precedence.frag.expected +++ /dev/null @@ -1,14 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef PRECEDENCE_FRAG_EXPECTED_ -# define PRECEDENCE_FRAG_EXPECTED_ - -const char *precedence_frag = - "void main()" - "{" - "float f=1.5-5./6.,r=(true?false?1.:2.:12.)*5.,a=4.*(false?true?1.:2.:3.),t=float(171),l=(2.+f)*(4.+r*6.)-(7.-a),e=-------5.,o=1./(f+r+a),g=1./(t*l*e);" - "gl_FragColor=vec4(o,g,o,0.);" - "}"; - -#endif // PRECEDENCE_FRAG_EXPECTED_ diff --git a/tests/unit/precision.frag b/tests/unit/precision.frag new file mode 100644 index 00000000..627c2c08 --- /dev/null +++ b/tests/unit/precision.frag @@ -0,0 +1,6 @@ +#version 120 + +precision highp float; +precision mediump int; +precision lowp sampler2D; +precision lowp samplerCube; diff --git a/tests/unit/precision.frag.expected b/tests/unit/precision.frag.expected new file mode 100644 index 00000000..fbf6ea1e --- /dev/null +++ b/tests/unit/precision.frag.expected @@ -0,0 +1,2 @@ +#version 120 +precision highp float;precision mediump int;precision lowp sampler2D;precision lowp samplerCube; diff --git a/tests/unit/rename_conflict.frag.expected b/tests/unit/rename_conflict.frag.expected deleted file mode 100644 index 1e939968..00000000 --- a/tests/unit/rename_conflict.frag.expected +++ /dev/null @@ -1,21 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef RENAME_CONFLICT_FRAG_EXPECTED_ -# define RENAME_CONFLICT_FRAG_EXPECTED_ - -const char *rename_conflict_frag = - "int r(int r,int n)" - "{" - "return r+1;" - "}" - "int r()" - "{" - "r(0);" - "}" - "int r(int n,int t,int i)" - "{" - "return n+r();" - "}"; - -#endif // RENAME_CONFLICT_FRAG_EXPECTED_ diff --git a/tests/unit/simple.frag.expected b/tests/unit/simple.frag.expected deleted file mode 100644 index 78d2b8e8..00000000 --- a/tests/unit/simple.frag.expected +++ /dev/null @@ -1,13 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SIMPLE_FRAG_EXPECTED_ -# define SIMPLE_FRAG_EXPECTED_ - -const char *simple_frag = - "void main()" - "{" - "gl_FragColor=vec4(.2,.4,.6,0.);" - "}"; - -#endif // SIMPLE_FRAG_EXPECTED_ diff --git a/tests/unit/smoothstep.frag.expected b/tests/unit/smoothstep.frag.expected deleted file mode 100644 index 83c660ae..00000000 --- a/tests/unit/smoothstep.frag.expected +++ /dev/null @@ -1,17 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SMOOTHSTEP_FRAG_EXPECTED_ -# define SMOOTHSTEP_FRAG_EXPECTED_ - -const char *smoothstep_frag = - "void main()" - "{" - "vec2 o=-1.+2.*gl_FragCoord.xy/resolution.xy;" - "float f=sqrt(dot(o,o));" - "f=smoothstep(0.,1.,f);" - "ao=smoothstep(0.,.4,f)-smoothstep(.4,.7,f);" - "float m=smoothstep(-.1,.1,ref.y);" - "}"; - -#endif // SMOOTHSTEP_FRAG_EXPECTED_ diff --git a/tests/unit/suffix.frag.expected b/tests/unit/suffix.frag.expected deleted file mode 100644 index df5478cd..00000000 --- a/tests/unit/suffix.frag.expected +++ /dev/null @@ -1,14 +0,0 @@ -/* File generated with Shader Minifier 1.1.6 - * http://www.ctrl-alt-test.fr - */ -#ifndef SUFFIX_FRAG_EXPECTED_ -# define SUFFIX_FRAG_EXPECTED_ - -const char *suffix_frag = - "void main()" - "{" - "int m=41u,f=42U;" - "float i=1.2LF,a=3.F,l=.0003lf,n=2e-09f,o=2.f;" - "}"; - -#endif // SUFFIX_FRAG_EXPECTED_