瀏覽代碼

fix bug - msaa and taa should accumulate rgb and alpha the same.

Ben Houston 9 年之前
父節點
當前提交
4490ebf631
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      examples/js/postprocessing/ManualMSAARenderPass.js
  2. 2 0
      examples/js/postprocessing/TAARenderPass.js

+ 2 - 0
examples/js/postprocessing/ManualMSAARenderPass.js

@@ -42,6 +42,8 @@ THREE.ManualMSAARenderPass = function ( scene, camera, params ) {
 		blending: THREE.CustomBlending,
 		blendSrc: THREE.OneFactor,
 		blendDst: THREE.OneFactor,
+		blendSrcAlpha: THREE.OneFactor,
+		blendDstAlpha: THREE.OneFactor,
 		blendEquation: THREE.AddEquation,
 		depthTest: false,
 		depthWrite: false

+ 2 - 0
examples/js/postprocessing/TAARenderPass.js

@@ -42,6 +42,8 @@ THREE.TAARenderPass = function ( scene, camera, params ) {
 		blending: THREE.CustomBlending,
 		blendSrc: THREE.OneFactor,
 		blendDst: THREE.OneFactor,
+		blendSrcAlpha: THREE.OneFactor,
+		blendDstAlpha: THREE.OneFactor,
 		blendEquation: THREE.AddEquation,
 		depthTest: false,
 		depthWrite: false