Created
October 1, 2016 18:40
-
-
Save eddietree/e815dfcb35fe2ecd43f61ff888871233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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