Ver código fonte

Set maxFrameCount in path tracking example

master
Palash Bansal 11 meses atrás
pai
commit
cf935f7338
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      examples/three-gpu-pathtracer/script.ts

+ 2
- 0
examples/three-gpu-pathtracer/script.ts Ver arquivo

@@ -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, {

Carregando…
Cancelar
Salvar