Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am fallenoak on github.
  • I am fallenoak (https://keybase.io/fallenoak) on keybase.
  • I have a public key ASBxfamOaB2G-OrwjoGCws3_j2NbtyGN4krVfwlqJAUMswo

To claim this, I am signing this object:

@fallenoak
fallenoak / glenum.c
Last active February 27, 2017 03:33
enum GLEnum {
/* TextureMagFilter */
GL_NEAREST = 0x2600,
GL_LINEAR = 0x2601,
/* TextureParameterName */
GL_TEXTURE_MAG_FILTER = 0x2800,
GL_TEXTURE_MIN_FILTER = 0x2801,
GL_TEXTURE_WRAP_S = 0x2802,
GL_TEXTURE_WRAP_T = 0x2803,
@fallenoak
fallenoak / ThreeBSP.js
Created June 6, 2016 14:55 — forked from chandlerprall/ThreeBSP.js
Port of Evan Wallace's csg.js to Three.js
THREE.Vector3.prototype.lerp = function ( a, t ) {
return this.clone().addSelf( a.clone().subSelf( this ).multiplyScalar( t ) );
};
THREE.Vertex.prototype.interpolate = function( other, t ) {
var v = new THREE.Vertex( this.position.lerp( other.position, t ) );
v.normal = this.normal.clone();
return v;
};