소스 검색

Add ground plugin to examples list

master
Palash Bansal 11 달 전
부모
커밋
e405f41ed6
No account linked to committer's email address
3개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 3
    2
      examples/advanced-ground-plugin/script.ts
  2. 1
    0
      examples/index.html
  3. 3
    5
      examples/tweakpane-editor/ThreeEditor.ts

+ 3
- 2
examples/advanced-ground-plugin/script.ts 파일 보기

@@ -23,13 +23,14 @@ async function init() {
disposeSceneObjects: true,
},
},
plugins: [LoadingScreenPlugin, GBufferPlugin, SSAAPlugin, TemporalAAPlugin],
plugins: [LoadingScreenPlugin, GBufferPlugin, SSAAPlugin, TemporalAAPlugin, SSReflectionPlugin],
// rgbm: false,
})
viewer.renderManager.stableNoise = true

const ground = viewer.addPluginSync(AdvancedGroundPlugin)
ground.planarReflections = true
ground.groundReflection = true
ground.material!.roughness = 0.2

const ui = viewer.addPluginSync(new TweakpaneUiPlugin(true))


+ 1
- 0
examples/index.html 파일 보기

@@ -390,6 +390,7 @@
<li><a href="./anisotropy-plugin/">Anisotropy(Blender) Plugin </a></li>
<li><a href="./velocity-buffer-plugin/">Velocity Buffer Plugin (TAA) </a></li>
<li><a href="./sscontactshadows-plugin/">Contact Shadows(SSCS) Plugin </a></li>
<li><a href="./advanced-ground-plugin/">Advanced Ground Plugin <br/>(Baked Shadow/Planar Reflections) </a></li>
</ul>
<h2 class="category">Post-Processing</h2>
<ul>

+ 3
- 5
examples/tweakpane-editor/ThreeEditor.ts 파일 보기

@@ -137,7 +137,7 @@ export class ThreeEditor extends ThreeViewer {
MaterialConfiguratorPlugin, SwitchNodePlugin,
AWSClientPlugin, TransfrSharePlugin,

// todo add these to blueprint editor, 3dviewer.xyz
// todo add these to 3dviewer.xyz
EnvironmentControlsPlugin, GlobeControlsPlugin,
B3DMLoadPlugin, I3DMLoadPlugin, PNTSLoadPlugin, CMPTLoadPlugin,
TilesRendererPlugin, DeepZoomImageLoadPlugin, /* SlippyMapTilesLoadPlugin,*/
@@ -161,7 +161,7 @@ export class ThreeEditor extends ThreeViewer {
async init() {
await this.addPlugins(this.editorPlugins)

KTX2LoadPlugin.SAVE_SOURCE_BLOBS = true // so that ktx files can be exported. todo - add this to blueprint editor init as well
KTX2LoadPlugin.SAVE_SOURCE_BLOBS = true // so that ktx files can be exported.

// to show more details in the UI and allow to edit changes in title etc.
const mat = this.getPlugin(MaterialConfiguratorPlugin)
@@ -169,10 +169,8 @@ export class ThreeEditor extends ThreeViewer {
const swi = this.getPlugin(SwitchNodePlugin)
swi && (swi.enableEditContextMenus = true)

// todo do same in blueprint editor
// disable fading on update
const loading = this.getPlugin(LoadingScreenPlugin)
loading && (loading.isEditor = true) // disable fading on update
loading && (loading.isEditor = true)

// disable fading on update
const fade = this.getPlugin(FrameFadePlugin)

Loading…
취소
저장