This file contains 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
{ | |
"requireCurlyBraces": ["while", "do", "try", "catch"], | |
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], | |
"requireSpacesInFunctionExpression": { | |
"beforeOpeningCurlyBrace": true | |
}, | |
"requirePaddingNewlinesInBlocks": true, | |
"requireSpacesInsideObjectBrackets": "all", | |
"requireSpacesInsideArrayBrackets": "allButNested", | |
"requireSpaceBeforeBlockStatements": true, |
This file contains 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 Checker = require('./lib/checker'); | |
var fs = require('fs'); | |
var str = fs.readFileSync('./build.min.js','UTF8'); | |
var checker = new Checker(); | |
checker.registerDefaultRules(); | |
checker.configure({ | |
requireCurlyBraces: ['while', 'do', 'try', 'catch','if', 'else'], | |
requireSpaceAfterKeywords: ['if', 'else', 'for', 'while', 'do', 'switch', 'return', 'try', 'catch'], |
This file contains 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 renderer = new THREE.WebGLRenderer({canvas:canvas}); | |
var scene = new THREE.Scene(); | |
var camera = new THREE.PerspectiveCamera(); | |
scene.add(camera); | |
renderer.render(scene, camera); |
This file contains 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
/* | |
* @author zz85 / http://twitter.com/blurspline / http://www.lab4games.net/zz85/blog | |
* | |
* Subdivision Geometry Modifier | |
* using Loop Subdivision Scheme | |
* | |
* References: | |
* http://graphics.stanford.edu/~mdfisher/subdivision.html | |
* http://www.holmes3d.net/graphics/subdivision/ | |
* http://www.cs.rutgers.edu/~decarlo/readings/subdiv-sg00c.pdf |
This file contains 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
/** | |
* @author WestLangley / http://github.com/WestLangley | |
*/ | |
THREE.EdgesGeometry = function ( geometry, thresholdAngle ) { | |
THREE.BufferGeometry.call( this ); | |
thresholdAngle = ( thresholdAngle !== undefined ) ? thresholdAngle : 1; |
This file contains 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
info it worked if it ends with ok | |
verb command 'build' [] | |
verb build args [] | |
verb `which` succeededmake '/usr/bin/make' | |
spawn make [ 'V=1', 'BUILDTYPE=Debug', '-f', 'Makefile.gyp' ] | |
g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DDEBUG' '-D_DEBUG' -I../../.node-gyp/0.7/src -I../../.node-gyp/0.7/deps/uv/include -I../../.node-gyp/0.7/deps/v8/include -Iinclude -Ihosts -Imodules -Ideps -Wall -pthread -m32 -ansi -O3 -msse2 -ffast-math -g -fPIC -DPIC -g -O0 -fno-rtti -fno-exceptions -O3 -msse2 -ffast-math -g -fPIC -DPIC -MMD -MF out/Debug/.deps/out/Debug/obj.target/o3/hosts/node-o3/sh_node.o.d.raw -c -o out/Debug/obj.target/o3/hosts/node-o3/sh_node.o hosts/node-o3/sh_node.cc | |
In file included from include/o3.h:41:0, | |
from hosts/node-o3/sh_node.cc:22: | |
include/cUnk.h:224:0: let op: ignoring #pragma warning [-Wunknown-pragmas] | |
include/cUnk.h:225:0: let op: ignoring #pragma warning [-Wunknown-pragmas] |
This file contains 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
{ | |
"metadata": { | |
"formatVersion": 3, | |
"generatedBy": "Blender 2.60 Exporter", | |
"vertices": 224, | |
"faces": 200, | |
"normals": 86, | |
"colors": 0, | |
"uvs": 0, | |
"materials": 1, |
This file contains 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
THREE.Ray=function(L,M,N,O){this.origin=L||new THREE.Vector3;this.direction=M||new THREE.Vector3;this.near=N||0;this.far=O||Infinity;var q=new THREE.Vector3,p=new THREE.Vector3,r=new THREE.Vector3,v=new THREE.Vector3,s=new THREE.Vector3,D=new THREE.Vector3,t=new THREE.Vector3,u=new THREE.Vector3,E=new THREE.Vector3,w=new THREE.Vector3,m=new THREE.Vector3,x=new THREE.Matrix4,G=function(a,c){return a.distance-c.distance},g=new THREE.Vector3,h=new THREE.Vector3,j=new THREE.Vector3,H,I,c,J=function(a, | |
F,b){g.sub(b,a);H=g.dot(F);I=h.add(a,j.copy(F).multiplyScalar(H));return c=b.distanceTo(I)},n,i,o,k,y,z,A,B,C=function(a,c,b,f){g.sub(f,c);h.sub(b,c);j.sub(a,c);n=g.dot(g);i=g.dot(h);o=g.dot(j);k=h.dot(h);y=h.dot(j);z=1/(n*k-i*i);A=(k*o-i*y)*z;B=(n*y-i*o)*z;return 0<=A&&0<=B&&1>A+B},K=1E-4;this.setPrecision=function(a){K=a};this.intersectObject=function(a,g){var b,f=[];if(!0===g)for(var d=0,h=a.children.length;d<h;d++)Array.prototype.push.apply(f,this.intersectObject(a.children[d],g));if(a instanceof | |
THREE.Particle) |
This file contains 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
THREE.Ray=function(L,M,N,O){this.origin=L||new THREE.Vector3;this.direction=M||new THREE.Vector3;this.near=N||0;this.far=O||Infinity;var q=new THREE.Vector3,p=new THREE.Vector3,r=new THREE.Vector3,v=new THREE.Vector3,s=new THREE.Vector3,D=new THREE.Vector3,t=new THREE.Vector3,u=new THREE.Vector3,E=new THREE.Vector3,w=new THREE.Vector3,m=new THREE.Vector3,x=new THREE.Matrix4,G=function(a,c){return a.distance-c.distance},g=new THREE.Vector3,h=new THREE.Vector3,j=new THREE.Vector3,H,I,c,J=function(a, | |
F,b){g.sub(b,a);H=g.dot(F);I=h.add(a,j.copy(F).multiplyScalar(H));return c=b.distanceTo(I)},n,i,o,k,y,z,A,B,C=function(a,c,b,f){g.sub(f,c);h.sub(b,c);j.sub(a,c);n=g.dot(g);i=g.dot(h);o=g.dot(j);k=h.dot(h);y=h.dot(j);z=1/(n*k-i*i);A=(k*o-i*y)*z;B=(n*y-i*o)*z;return 0<=A&&0<=B&&1>A+B},K=1E-4;this.setPrecision=function(a){K=a};this.intersectObject=function(a,g){var b,f=[];if(!0===g)for(var d=0,h=a.children.length;d<h;d++)Array.prototype.push.apply(f,this.intersectObject(a.children[d],g));if(a instanceof | |
THREE.Particle) |
This file contains 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
/*global THREE:true requestAnimationFrame:true shaders:true*/ | |
var shaders = { | |
splat:{ | |
defines : {"USE_DIFFUSE2" : true}, | |
uniforms:{ | |
"alpha1" : { type: "t", value: null }, | |
"diffuse1" : { type: "t", value: null }, | |
"multiplier1" : {type: "f", value: 16.0 }, |
OlderNewer