Skip to content

Instantly share code, notes, and snippets.

@mattlockyer
Last active November 25, 2020 00:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattlockyer/a36dc919031a7b77a94c to your computer and use it in GitHub Desktop.
Save mattlockyer/a36dc919031a7b77a94c to your computer and use it in GitHub Desktop.
Three.js blend modes from source (not in docs)
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