port from perforce
This commit is contained in:
14
hgplus/ShaderMinifier/tests/real/extatique/scene45.fs
Normal file
14
hgplus/ShaderMinifier/tests/real/extatique/scene45.fs
Normal file
@@ -0,0 +1,14 @@
|
||||
uniform sampler2D tex;
|
||||
uniform float time;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 p = gl_TexCoord[0].xy;
|
||||
float u = atan(p.y, p.x + 0.0001) * 1.0 / 3.1415926;
|
||||
float v = 0.002 / (0.01 + length(p)) - time * 0.1;
|
||||
vec4 space = texture2D(tex, vec2(u,v))
|
||||
+ vec4(0.5) * texture2D(tex, vec2(u,v * 4.0))
|
||||
+ vec4(0.25) * texture2D(tex, vec2(u,v * 16.0));
|
||||
gl_FragColor = gl_Color * space;
|
||||
}
|
||||
Reference in New Issue
Block a user