Skip to content

Commit

Permalink
Add Quad.js to be able to code a raymarcher after / Turn off auto rot…
Browse files Browse the repository at this point in the history
…ate (maybe I would add a button)
  • Loading branch information
Saorel committed Jun 12, 2013
1 parent 7877ecd commit d1788da
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 30 deletions.
2 changes: 1 addition & 1 deletion sources/shdr/App.coffee
Expand Up @@ -298,4 +298,4 @@ class App
object

@shdr ||= {}
@shdr.App = App
@shdr.App = App
23 changes: 13 additions & 10 deletions sources/shdr/App.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sources/shdr/Bootstrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion sources/shdr/Models.coffee
Expand Up @@ -3,6 +3,10 @@ Models =
'models/cube.js':
name: 'Cube'


'models/quad.js':
name: 'Quad'

'models/sphere.js':
name: 'Shere'

Expand All @@ -24,4 +28,4 @@ Models =
name: 'Suzanne (high)'

@shdr ||= {}
@shdr.Models = Models
@shdr.Models = Models
5 changes: 4 additions & 1 deletion sources/shdr/Models.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sources/shdr/Snippets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions sources/shdr/Storage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions sources/shdr/UI.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions sources/shdr/Validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sources/shdr/Viewer.coffee
Expand Up @@ -5,7 +5,7 @@ class Viewer

constructor: (@dom, @app) ->
@time = 0.0
@rotate = true
@rotate = false
@currentModel = null
@rotateRate = 0.005
@renderer = new THREE.WebGLRenderer(antialias: on)
Expand Down Expand Up @@ -84,4 +84,4 @@ class Viewer
)

@shdr ||= {}
@shdr.Viewer = Viewer
@shdr.Viewer = Viewer
5 changes: 2 additions & 3 deletions sources/shdr/Viewer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1788da

Please sign in to comment.