Sfoglia il codice sorgente

Set maxFrameCount in path tracking example

master
Palash Bansal 11 mesi fa
parent
commit
cf935f7338
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      examples/three-gpu-pathtracer/script.ts

+ 2
- 0
examples/three-gpu-pathtracer/script.ts Vedi 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…
Annulla
Salva