浏览代码

Add path tracing to tweakpane editor

master
Palash Bansal 11 个月前
父节点
当前提交
d31899c178
没有帐户链接到提交者的电子邮件
共有 3 个文件被更改,包括 5 次插入1 次删除
  1. 1
    0
      .idea/threepipe.iml
  2. 3
    1
      examples/tweakpane-editor/ThreeEditor.ts
  3. 1
    0
      examples/tweakpane-editor/index.html

+ 1
- 0
.idea/threepipe.iml 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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"
}
}

正在加载...
取消
保存