Skip to content

Commit

Permalink
Fix the viewer test example
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Apr 10, 2024
1 parent 6fe476a commit d44157e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/viewerTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
import { GUI } from 'three/examples/jsm/libs/lil-gui.module.min.js';
import { MaterialReducer, WebGLPathTracer } from '../src/index.js';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { GenerateMeshBVHWorker } from '../src/core/GenerateMeshBVHWorker.js';
import { ParallelMeshBVHWorker } from 'three-mesh-bvh/src/workers/ParallelMeshBVHWorker.js';
import { LoaderElement } from './utils/LoaderElement.js';

const CONFIG_URL = 'https://raw.githubusercontent.com/google/model-viewer/master/packages/render-fidelity-tools/test/config.json';
Expand Down Expand Up @@ -89,7 +89,7 @@ async function init() {
pathTracer = new WebGLPathTracer( renderer );
pathTracer.filterGlossyFactor = 0.5;
pathTracer.tiles.set( params.tiles );
pathTracer.setBVHWorker( new GenerateMeshBVHWorker() );
pathTracer.setBVHWorker( new ParallelMeshBVHWorker() );
pathTracer.multipleImportanceSampling = params.multipleImportanceSampling;

// scene
Expand Down

0 comments on commit d44157e

Please sign in to comment.