Browse Source

support MultiplyBlending in CanvasRenderer (#8777)

makc 9 years ago
parent
commit
eea6ba39a0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/js/renderers/CanvasRenderer.js

+ 4 - 0
examples/js/renderers/CanvasRenderer.js

@@ -1033,6 +1033,10 @@ THREE.CanvasRenderer = function ( parameters ) {
 
 				_context.globalCompositeOperation = 'darker';
 
+			} else if ( value === THREE.MultiplyBlending ) {
+
+				_context.globalCompositeOperation = 'multiply';
+
 			}
 
 			_contextGlobalCompositeOperation = value;