Переглянути джерело

Add ground plugin to examples list

master
Palash Bansal 11 місяці тому
джерело
коміт
e405f41ed6
Аккаунт користувача з таким Email не знайдено

+ 3
- 2
examples/advanced-ground-plugin/script.ts Переглянути файл

disposeSceneObjects: true, disposeSceneObjects: true,
}, },
}, },
plugins: [LoadingScreenPlugin, GBufferPlugin, SSAAPlugin, TemporalAAPlugin],
plugins: [LoadingScreenPlugin, GBufferPlugin, SSAAPlugin, TemporalAAPlugin, SSReflectionPlugin],
// rgbm: false, // rgbm: false,
}) })
viewer.renderManager.stableNoise = true viewer.renderManager.stableNoise = true


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


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



+ 1
- 0
examples/index.html Переглянути файл

<li><a href="./anisotropy-plugin/">Anisotropy(Blender) Plugin </a></li> <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="./velocity-buffer-plugin/">Velocity Buffer Plugin (TAA) </a></li>
<li><a href="./sscontactshadows-plugin/">Contact Shadows(SSCS) Plugin </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> </ul>
<h2 class="category">Post-Processing</h2> <h2 class="category">Post-Processing</h2>
<ul> <ul>

+ 3
- 5
examples/tweakpane-editor/ThreeEditor.ts Переглянути файл

MaterialConfiguratorPlugin, SwitchNodePlugin, MaterialConfiguratorPlugin, SwitchNodePlugin,
AWSClientPlugin, TransfrSharePlugin, AWSClientPlugin, TransfrSharePlugin,


// todo add these to blueprint editor, 3dviewer.xyz
// todo add these to 3dviewer.xyz
EnvironmentControlsPlugin, GlobeControlsPlugin, EnvironmentControlsPlugin, GlobeControlsPlugin,
B3DMLoadPlugin, I3DMLoadPlugin, PNTSLoadPlugin, CMPTLoadPlugin, B3DMLoadPlugin, I3DMLoadPlugin, PNTSLoadPlugin, CMPTLoadPlugin,
TilesRendererPlugin, DeepZoomImageLoadPlugin, /* SlippyMapTilesLoadPlugin,*/ TilesRendererPlugin, DeepZoomImageLoadPlugin, /* SlippyMapTilesLoadPlugin,*/
async init() { async init() {
await this.addPlugins(this.editorPlugins) 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. // to show more details in the UI and allow to edit changes in title etc.
const mat = this.getPlugin(MaterialConfiguratorPlugin) const mat = this.getPlugin(MaterialConfiguratorPlugin)
const swi = this.getPlugin(SwitchNodePlugin) const swi = this.getPlugin(SwitchNodePlugin)
swi && (swi.enableEditContextMenus = true) swi && (swi.enableEditContextMenus = true)


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


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

Завантаження…
Відмінити
Зберегти