Procházet zdrojové kódy

Set maxFrameCount in path tracking example

master
Palash Bansal před 11 měsíci
rodič
revize
cf935f7338
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2
    0
      examples/three-gpu-pathtracer/script.ts

+ 2
- 0
examples/three-gpu-pathtracer/script.ts Zobrazit soubor

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

Načítá se…
Zrušit
Uložit