Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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