Kaynağa Gözat

Add path tracing to tweakpane editor

master
Palash Bansal 11 ay önce
ebeveyn
işleme
d31899c178
No account linked to committer's email address

+ 1
- 0
.idea/threepipe.iml Dosyayı Görüntüle

@@ -26,6 +26,7 @@
<excludeFolder url="file://$MODULE_DIR$/plugins/3d-tiles-renderer/dist" />
<excludeFolder url="file://$MODULE_DIR$/plugins/3d-tiles-renderer/docs" />
<excludeFolder url="file://$MODULE_DIR$/plugins/assimpjs/docs" />
<excludeFolder url="file://$MODULE_DIR$/plugins/path-tracing/docs" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />

+ 3
- 1
examples/tweakpane-editor/ThreeEditor.ts Dosyayı Görüntüle

@@ -75,6 +75,7 @@ import {
GlobeControlsPlugin,
} from '@threepipe/plugin-3d-tiles-renderer'
import {AssimpJsPlugin} from '@threepipe/plugin-assimpjs'
import {ThreeGpuPathTracerPlugin} from '@threepipe/plugin-path-tracing'
// @ts-expect-error todo fix import
import {BloomPlugin, DepthOfFieldPlugin, SSContactShadowsPlugin, SSReflectionPlugin, TemporalAAPlugin, VelocityBufferPlugin, OutlinePlugin, SSGIPlugin, AnisotropyPlugin} from '@threepipe/webgi-plugins'

@@ -140,10 +141,11 @@ export class ThreeEditor extends ThreeViewer {
B3DMLoadPlugin, I3DMLoadPlugin, PNTSLoadPlugin, CMPTLoadPlugin,
TilesRendererPlugin, DeepZoomImageLoadPlugin, /* SlippyMapTilesLoadPlugin,*/
new AssimpJsPlugin(false),
new ThreeGpuPathTracerPlugin(false),
]

editorModes: Record<string, Class<IViewerPlugin<any>>[]> = {
['Viewer']: [ViewerUiConfigPlugin, DropzonePlugin, FullScreenPlugin, TweakpaneUiPlugin, LoadingScreenPlugin, InteractionPromptPlugin],
['Viewer']: [ViewerUiConfigPlugin, DropzonePlugin, FullScreenPlugin, TweakpaneUiPlugin, LoadingScreenPlugin, InteractionPromptPlugin, ThreeGpuPathTracerPlugin],
['Scene']: [SSAAPlugin, BaseGroundPlugin, SceneUiConfigPlugin, ContactShadowGroundPlugin],
['Interaction']: [HierarchyUiPlugin, TransformControlsPlugin, PickingPlugin, OutlinePlugin, Object3DGeneratorPlugin, GeometryGeneratorPlugin, EditorViewWidgetPlugin, Object3DWidgetsPlugin, MeshOptSimplifyModifierPlugin],
['GBuffer']: [GBufferPlugin, DepthBufferPlugin, NormalBufferPlugin],

+ 1
- 0
examples/tweakpane-editor/index.html Dosyayı Görüntüle

@@ -28,6 +28,7 @@
"@threepipe/plugin-gaussian-splatting": "./../../plugins/gaussian-splatting/dist/index.mjs",
"@threepipe/plugin-3d-tiles-renderer": "./../../plugins/3d-tiles-renderer/dist/index.mjs",
"@threepipe/plugin-assimpjs": "./../../plugins/assimpjs/dist/index.mjs",
"@threepipe/plugin-path-tracing": "./../../plugins/path-tracing/dist/index.mjs",
"@threepipe/webgi-plugins": "https://unpkg.com/@threepipe/webgi-plugins@0.4.1/dist/index.mjs"
}
}

Loading…
İptal
Kaydet