-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use context-based renaming when minifying multiple files (#219)
- Loading branch information
Showing
4 changed files
with
59 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
/* File generated with | ||
* http://www.ctrl-alt-test.fr | ||
*/ | ||
# define VAR_ambientLight "m" | ||
# define VAR_diffuseColor "i" | ||
# define VAR_emissiveColor "a" | ||
# define VAR_fragmentColor "o" | ||
# define VAR_mediumDensity "t" | ||
# define VAR_normal "c" | ||
# define VAR_specularColor "n" | ||
# define VAR_texture0 "e" | ||
# define VAR_viewVec "v" | ||
# define VAR_ambientLight "f" | ||
# define VAR_diffuseColor "n" | ||
# define VAR_emissiveColor "z" | ||
# define VAR_fragmentColor "r" | ||
# define VAR_mediumDensity "s" | ||
# define VAR_normal "m" | ||
# define VAR_specularColor "e" | ||
# define VAR_texture0 "v" | ||
# define VAR_viewVec "d" | ||
|
||
// tests/unit/inout.frag | ||
"#version 330\n" | ||
"uniform samplerCube e;" | ||
"in vec3 c,v;" | ||
"out vec4 o;" | ||
"uniform samplerCube v;" | ||
"in vec3 m,d;" | ||
"out vec4 r;" | ||
"void main()" | ||
"{" | ||
"vec3 l=normalize(v),u=normalize(c),f=vec3(.1,.2,.3),x=texture(e,reflect(-l,u)).xyz,p=texture(e,refract(-l,u,1./1.5)).xyz,z=mix(f*p,x,.1);" | ||
"o=vec4(z,1);" | ||
"vec3 f=normalize(d),z=normalize(m),c=vec3(.1,.2,.3),n=texture(v,reflect(-f,z)).xyz,e=texture(v,refract(-f,z,1./1.5)).xyz,p=mix(c*e,n,.1);" | ||
"r=vec4(p,1);" | ||
"}" | ||
"vec3 r(vec3 d,vec3 l,vec3 s)" | ||
"vec3 t(vec3 v,vec3 m,vec3 f)" | ||
"{" | ||
"float C=1.-clamp(dot(l,s),0.,1.);" | ||
"return C*C*C*C*C*(1.-d)+d;" | ||
"float r=1.-clamp(dot(m,f),0.,1.);" | ||
"return r*r*r*r*r*(1.-v)+v;" | ||
"}" | ||
"vec3 r(vec3 l,vec3 y,vec3 u,vec3 f,vec3 d,float w)" | ||
"vec3 t(vec3 v,vec3 m,vec3 f,vec3 n,vec3 d,float r)" | ||
"{" | ||
"vec3 s=normalize(l+y),b,Z,Y;" | ||
"float X=1.+2048.*(1.-w)*(1.-w);" | ||
"b=f;" | ||
"Z=vec3(pow(clamp(dot(s,u),0.,1.),X)*(X+4.)/8.);" | ||
"Y=r(d,l,s);" | ||
"return mix(b,Z,Y);" | ||
"vec3 z=normalize(v+m),p,e,c;" | ||
"float s=1.+2048.*(1.-r)*(1.-r);" | ||
"p=n;" | ||
"e=vec3(pow(clamp(dot(z,f),0.,1.),s)*(s+4.)/8.);" | ||
"c=t(d,v,z);" | ||
"return mix(p,e,c);" | ||
"}", | ||
|
||
// tests/unit/inout2.frag | ||
"#version 330\n" | ||
"uniform samplerCube e;" | ||
"uniform float t;" | ||
"uniform vec3 m,i,a,n;" | ||
"in vec3 c,v;" | ||
"out vec4 o;" | ||
"vec3 r(vec3 d,vec3 l,vec3 s)" | ||
"uniform samplerCube v;" | ||
"uniform float s;" | ||
"uniform vec3 f,n,z,e;" | ||
"in vec3 m,d;" | ||
"out vec4 r;" | ||
"vec3 t(vec3 v,vec3 m,vec3 f)" | ||
"{" | ||
"float C=1.-clamp(dot(l,s),0.,1.);" | ||
"return C*C*C*C*C*(1.-d)+d;" | ||
"float r=1.-clamp(dot(m,f),0.,1.);" | ||
"return r*r*r*r*r*(1.-v)+v;" | ||
"}" | ||
"void main()" | ||
"{" | ||
"vec3 f=i,z=a+mix(f*m,m,.5);" | ||
"o=vec4(z,1);" | ||
"vec3 v=n,p=z+mix(v*f,f,.5);" | ||
"r=vec4(p,1);" | ||
"}" | ||
"vec3 r(vec3 l,vec3 y,vec3 u,vec3 f,vec3 d,float w)" | ||
"vec3 t(vec3 v,vec3 m,vec3 f,vec3 n,vec3 d,float r)" | ||
"{" | ||
"vec3 s=normalize(l+y),b,Z,Y;" | ||
"float X=1.+2048.*(1.-w)*(1.-w);" | ||
"b=f;" | ||
"Z=vec3(pow(clamp(dot(s,u),0.,1.),X)*(X+4.)/8.);" | ||
"Y=r(d,l,s);" | ||
"return mix(b,Z,Y);" | ||
"vec3 z=normalize(v+m),p,e,c;" | ||
"float s=1.+2048.*(1.-r)*(1.-r);" | ||
"p=n;" | ||
"e=vec3(pow(clamp(dot(z,f),0.,1.),s)*(s+4.)/8.);" | ||
"c=t(d,v,z);" | ||
"return mix(p,e,c);" | ||
"}", |