Pārlūkot izejas kodu

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

Ben Houston 9 gadi atpakaļ
vecāks
revīzija
4490ebf631

+ 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