浏览代码

Editor: Viewport.Pathtracer clean up.

Mr.doob 1 年之前
父节点
当前提交
2b6dfe9b58
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      editor/js/Viewport.Pathtracer.js

+ 2 - 1
editor/js/Viewport.Pathtracer.js

@@ -1,3 +1,4 @@
+import * as THREE from 'three';
 import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass.js';
 import {
 	PathTracingSceneGenerator,
@@ -23,7 +24,7 @@ function ViewportPathtracer( renderer ) {
 
 			quad = new FullScreenQuad( new THREE.MeshBasicMaterial( {
 				map: pathtracer.target.texture,
-				blending: 5 // THREE.CustomBlending
+				blending: THREE.CustomBlending
 			} ) );
 
 		}