Last active
November 25, 2020 00:20
-
-
Save mattlockyer/a36dc919031a7b77a94c to your computer and use it in GitHub Desktop.
Three.js blend modes from source (not in docs)
This file contains hidden or 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
THREE.NoBlending = 0; | |
THREE.NormalBlending = 1; | |
THREE.AdditiveBlending = 2; | |
THREE.SubtractiveBlending = 3; | |
THREE.MultiplyBlending = 4; | |
THREE.CustomBlending = 5; | |
How to change it: | |
var material = new THREE.BasicMaterial({ | |
... | |
opacity: 0.5, | |
blending: THREE.AdditiveBlending, | |
transparent: true | |
... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment