Felix Palmer | @pheeelicks | www.pheelicks.com
Felix Palmer | @pheeelicks | www.pheelicks.com
git clone git@github.com:felixpalmer/amd-three.js.git
cd amd-three.js
./webserver.sh
open http://localhost:8000
THREE.js
objectTHREE.Object3D.add()
)app.lightcycle = new Lightcycle();
THREE.Clock
document.onmousemove
listener and update based on mouse positiongit clone git@github.com:felixpalmer/tron.js.git
cd tron.js
./webserver.sh
open http://localhost:3333
js/shaders/simple.vert
material.simple
mix
, pow
, mix
etc...engine.vert
const
Compile type constantattribute
JS -> vertex shader. Attributes are per-vertex.
uniform
JS -> shaders. Uniform across materialvarying
Vertex shader -> fragment shader. Interpolated!Check out Qualifiers
section in WebGL cheatsheet
js/shaders/simple.frag
sin
, pow
, mix
etc...engine.frag
postprocess.frag
in FF toolsFelix Palmer | @pheeelicks | www.pheelicks.com