Sha256: 9b2e2c003d1044a17810d71bdcd4d4adf4e2934fb62335453ee42ef1c2e94c97
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 Bytes
Contents
# Attempts to implement single-pass wire frame (http://cgg-journal.com/2008-2/06/index.html) in WebGL. Jax.Controller.create "wire", index: -> tpmesh = new Jax.Mesh.Teapot material: new Jax.Material.Wire @point = @world.addLight new Jax.Light.Point shadows: false attenuation: constant: 0 linear: 0 quadratic: 0.00175 color: ambient: [0, 0, 0, 1] diffuse: [1, 0, 0, 1] specular: [1, 0, 0, 1] position: [-20, 0, 0] direction: [20, 0, -25] @world.addLight new Jax.Light.Directional shadows: false direction: [-1, -1, -1] @world.addObject new Jax.Framerate ema: no @world.addObject new Jax.Model position: [0, 0, -3] mesh: tpmesh update: (tc) -> @camera.rotate tc * 0.25, 1, 0.75, 0.5
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jax-3.0.0.rc2 | app/assets/jax/controllers/wire.js.coffee |
jax-3.0.0.rc1 | app/assets/jax/controllers/wire.js.coffee |