ソースを参照

support MultiplyBlending in CanvasRenderer (#8777)

makc 9 年 前
コミット
eea6ba39a0
1 ファイル変更4 行追加0 行削除
  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';
 				_context.globalCompositeOperation = 'darker';
 
 
+			} else if ( value === THREE.MultiplyBlending ) {
+
+				_context.globalCompositeOperation = 'multiply';
+
 			}
 			}
 
 
 			_contextGlobalCompositeOperation = value;
 			_contextGlobalCompositeOperation = value;