Toggle navigation
Sign Up
Log In
Explore
Works
Folders
Tools
Collections
Artists
Groups
Groups
Topics
Tasks
Tasks
Jobs
Teams
Jobs
Recommendation
More Effects...
JS
w=a.width=innerWidth h=a.height=innerHeight g=a.getContext('webgl')||a.getContext('experimental-webgl') g.enable(g.DEPTH_TEST) g.depthFunc(g.LEQUAL) $prog(g, [vertexShader, fragmentShader]) posBuf = $buf([1,1,0,-1,1,0,1,-1,0,-1,-1,0]) pos = $attr("pos") ~function scene(time) { time=time*1e-3 // clear screen g.clearColor(1/5, 1/5, 1/5, 1) g.clear(g.COLOR_BUFFER_BIT | g.DEPTH_BUFFER_BIT) // bind attributes to buffers $bind(pos, posBuf, 3) // set uniforms $uni("time", time) $uniV("resolution", [w,h]) // draw g.drawArrays(g.TRIANGLE_STRIP,0,4) requestAnimationFrame(scene) }(0)
CSS
body{ background-color:#000;overflow:hidden;margin:0 } canvas { position: absolute; overflow: hidden; display: block; width: 100%; height: 100%; top: 0; left: 0; }
HTML
Join Effecthub.com
Working with Global Gaming Artists and Developers!
Login
Sign Up
Or Login with Your Email Address:
Email
Password
Remember
Or Sign Up with Your Email Address:
Your Email
This field must contain a valid email
Set Password
Password should be at least 1 character
Stay informed via email