Skip to content

Commit

Permalink
Added back snow
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruPopovici committed Dec 20, 2024
1 parent 91487c2 commit 24a7ad6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/viewer-sandbox/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { SectionTool } from '@speckle/viewer'
import { SectionOutlines } from '@speckle/viewer'
import { ViewModesKeys } from './Extensions/ViewModesKeys'
import { BoxSelection } from './Extensions/BoxSelection'
import { SnowPipeline } from './Pipelines/Snow/SnowPipeline'

const createViewer = async (containerName: string, _stream: string) => {
const container = document.querySelector<HTMLElement>(containerName)
Expand Down Expand Up @@ -82,9 +83,9 @@ const createViewer = async (containerName: string, _stream: string) => {
Object.assign(sandbox.sceneParams.worldSize, viewer.World.worldSize)
Object.assign(sandbox.sceneParams.worldOrigin, viewer.World.worldOrigin)
sandbox.refresh()
// const snowPipeline = new SnowPipeline(viewer.getRenderer())
// viewer.getRenderer().pipeline = snowPipeline
// void snowPipeline.start()
const snowPipeline = new SnowPipeline(viewer.getRenderer())
viewer.getRenderer().pipeline = snowPipeline
void snowPipeline.start()
})

viewer.on(ViewerEvent.UnloadComplete, () => {
Expand Down

0 comments on commit 24a7ad6

Please sign in to comment.