Skip to content

Instantly share code, notes, and snippets.

@eddietree
Created October 1, 2016 18:39
Show Gist options
  • Save eddietree/ef080b239eb0abdd3078165f6f37ca6d to your computer and use it in GitHub Desktop.
Save eddietree/ef080b239eb0abdd3078165f6f37ca6d to your computer and use it in GitHub Desktop.
material = new THREE.MeshBasicMaterial({
color: 0xff0000,
shading: THREE.SmoothShading,
transparent: true,
blending: THREE.CustomBlending,
blendEquation: THREE.MaxEquation,
});
material.needsUpdate = true;
geometry = new THREE.BoxGeometry(0.5, 0.5, 0.5);
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