Procházet zdrojové kódy

Editor: Viewport.Pathtracer clean up.

Mr.doob před 1 rokem
rodič
revize
2b6dfe9b58
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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
 			} ) );
 
 		}