This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| These are unoptimized recreations of the built-in trigonometric | |
| functions as defined by Maclaurin / Taylor series. | |
| */ | |
| function factorial( number ) { | |
| var product = Math.max(1,number) | |
| while( number-- > 1 ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var glam = require('glam') | |
| var Mesh = glam.Mesh | |
| var Camera = glam.PerspectiveCamera | |
| var Material = glam.FlatMaterial | |
| var Scene = glam.Scene | |
| var Geometry = glam.Geometry | |
| var Box = require('geo-3d-box') | |
| var Bunny = require('bunny') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This demo is showing off the fog augmentation from Glam. | |
| https://github.com/glamjs/glam | |
| */ | |
| var glam = require('glam') | |
| var Mesh = glam.Mesh | |
| var PerspectiveCamera = glam.PerspectiveCamera | |
| var FlatMaterial = glam.FlatMaterial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function privates( instance, privates ) { | |
| for( key in instance ) { | |
| console.log(key) | |
| var fn = instance[key] | |
| if( typeof fn === "function" ) { | |
| instance[key] = fn.bind( instance, privates ) | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This demo is showing off the fog augmentation from Glam. | |
| https://github.com/glamjs/glam | |
| */ | |
| var glam = require('glam') | |
| var Mesh = glam.Mesh | |
| var PerspectiveCamera = glam.PerspectiveCamera | |
| var FlatMaterial = glam.FlatMaterial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This demo is showing off the fog augmentation from Glam. | |
| https://github.com/glamjs/glam | |
| */ | |
| var glam = require('glam') | |
| var Mesh = glam.Mesh | |
| var PerspectiveCamera = glam.PerspectiveCamera | |
| var FlatMaterial = glam.FlatMaterial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Glam = require('glam') | |
| var Bunny = require('bunny') | |
| var Mesh = Glam.Mesh | |
| var PerspectiveCamera = Glam.PerspectiveCamera | |
| var FlatMaterial = Glam.FlatMaterial | |
| var Scene = Glam.Scene | |
| var Geometry = Glam.Geometry | |
| ;(function main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Glam = require('glam') | |
| var Bunny = require('bunny') | |
| var Mesh = Glam.Mesh | |
| var PerspectiveCamera = Glam.PerspectiveCamera | |
| var FlatMaterial = Glam.FlatMaterial | |
| var Scene = Glam.Scene | |
| var Geometry = Glam.Geometry | |
| ;(function main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Glam = require('glam') | |
| var Bunny = require('bunny') | |
| var Mesh = Glam.Mesh | |
| var PerspectiveCamera = Glam.PerspectiveCamera | |
| var FlatMaterial = Glam.FlatMaterial | |
| var Scene = Glam.Scene | |
| var Geometry = Glam.Geometry | |
| ;(function main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Glam = require('glam') | |
| var Bunny = require('bunny') | |
| var Mesh = Glam.Mesh | |
| var PerspectiveCamera = Glam.PerspectiveCamera | |
| var FlatMaterial = Glam.FlatMaterial | |
| var Scene = Glam.Scene | |
| var Geometry = Glam.Geometry | |
| ;(function main() { |