Closed gkjohnson closed 5 months ago
Provide consistent / clear way to "reset" scene. When to use "reset"? When to use "updateScene"? How can we update scene most efficiently.
Options
Individual functions
pathTracer.setScene(...);
pathTracer.setSceneAsync( ... );
pathTracer.updateScene();
pathTracer.updateSceneAsync( ... );
pathTracer.updateMaterials();
pathTracer.updateCamera();
pathTracer.updateLights();
Provide options to the update function
pathTracer.updateScene( scene, camera, { updateMaterials, updateCamera, ... } );
Provide a separate function for setting the camera:
pathTracer.updateCamera( camera )
Examples
API
setMikkTSpace
function so it's used during generation.