Created
October 1, 2016 18:39
-
-
Save eddietree/ef080b239eb0abdd3078165f6f37ca6d 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
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