Skip to content

Commit

Permalink
Merge branch 'main' into latest-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed Dec 6, 2024
2 parents 6ef8847 + f4ef522 commit d28eda7
Show file tree
Hide file tree
Showing 2 changed files with 308 additions and 103 deletions.
1 change: 1 addition & 0 deletions src/splat-serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ const serializeViewer = async (splats: Splat[], write: WriteFunc) => {
// use camera clear color
const bgClr = splats[0].scene.events.invoke('bgClr');
const html = ViewerHtmlTemplate
.replace('{{backgroundColor}}', `rgb(${bgClr.r * 255} ${bgClr.g * 255} ${bgClr.b * 255})`)
.replace('{{clearColor}}', `${bgClr.r} ${bgClr.g} ${bgClr.b}`)
.replace('{{plyModel}}', plyModel);

Expand Down
Loading

0 comments on commit d28eda7

Please sign in to comment.