Skip to content

Instantly share code, notes, and snippets.

@eddietree
Created October 1, 2016 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddietree/e815dfcb35fe2ecd43f61ff888871233 to your computer and use it in GitHub Desktop.
Save eddietree/e815dfcb35fe2ecd43f61ff888871233 to your computer and use it in GitHub Desktop.
var material = new THREE.MeshBasicMaterial({
color: 0xff0000,
shading: THREE.SmoothShading,
transparent: true,
blending: THREE.CustomBlending,
blendEquation: THREE.MaxEquation,
});
material.needsUpdate = true;
var geometry = new THREE.BoxGeometry(0.5, 0.5, 0.5);
var mesh = new THREE.Mesh(geometry, material);
mesh.position.z = -1.0;
scene.add(mesh);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment