Browse Source

Set maxFrameCount in path tracking example

master
Palash Bansal 11 months ago
parent
commit
cf935f7338
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      examples/three-gpu-pathtracer/script.ts

+ 2
- 0
examples/three-gpu-pathtracer/script.ts View File

@@ -31,6 +31,8 @@ async function init() {
plugins: [LoadingScreenPlugin, PickingPlugin, ProgressivePlugin, BaseGroundPlugin, CanvasSnapshotPlugin, ThreeGpuPathTracerPlugin],
})

viewer.getPlugin(ProgressivePlugin)!.maxFrameCount = 500

await viewer.setEnvironmentMap('https://threejs.org/examples/textures/equirectangular/venice_sunset_1k.hdr', {setBackground: true})
const modelUrl = 'https://threejs.org/examples/models/gltf/DamagedHelmet/glTF/DamagedHelmet.gltf'
const result = await viewer.load<IObject3D>(modelUrl, {

Loading…
Cancel
Save