Kaynağa Gözat

Set maxFrameCount in path tracking example

master
Palash Bansal 11 ay önce
ebeveyn
işleme
cf935f7338
No account linked to committer's email address
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2
    0
      examples/three-gpu-pathtracer/script.ts

+ 2
- 0
examples/three-gpu-pathtracer/script.ts Dosyayı Görüntüle

plugins: [LoadingScreenPlugin, PickingPlugin, ProgressivePlugin, BaseGroundPlugin, CanvasSnapshotPlugin, ThreeGpuPathTracerPlugin], 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}) 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 modelUrl = 'https://threejs.org/examples/models/gltf/DamagedHelmet/glTF/DamagedHelmet.gltf'
const result = await viewer.load<IObject3D>(modelUrl, { const result = await viewer.load<IObject3D>(modelUrl, {

Loading…
İptal
Kaydet