Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ste-vg on github.
  • I am stevg (https://keybase.io/stevg) on keybase.
  • I have a public key ASC-rxyHjUgmsOI_CjiQOamQXvbl9J3YY8SLkTugikTqXQo

To claim this, I am signing this object:

const CODES = ['o', 'W', 'X', 'H', 'i', 'a', 'l', 's', 's','Q', 'v', 'y'];
console.log(`/${CODES.filter((c,i) => i % 3 == 0).join('')}`)
const textureLight = textureLoader.load('/textures/matcap-light-512.png')
const textureDark = textureLoader.load('/textures/matcap-dark-512.png')
const materials = {
light: new THREE.MeshMatcapMaterial({ matcap: textureLight }),
dark: new THREE.MeshMatcapMaterial({ matcap: textureDark }),
}
const updateAllMaterials = (scene) =>
{