Преглед на файлове

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