Skip to content

Commit

Permalink
fix: update submodule, fix demos.
Browse files Browse the repository at this point in the history
  • Loading branch information
aamir1995 committed Dec 5, 2023
1 parent 0deb5d6 commit d8a7dbf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo-snippets/guides/clipping/outlines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function main(centerX: number, centerY: number, centerZ: number): Recursi
planes: [
{
normalOffset: [0, -1, 0, -centerY],
outline: { enabled: true, color: [0, 1, 1] },
outline: { enabled: true, lineColor: [0, 1, 1] },
},
],
};
Expand Down
2 changes: 1 addition & 1 deletion demo-snippets/guides/interactive_examples/renderState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function main(): RenderStateChanges {
distance: 100,
},
background: {
color: [0, 0, 0.1, 1],
color: [0, 0, 0.1],
},
tonemapping: {
exposure: -1,
Expand Down
2 changes: 1 addition & 1 deletion demo-snippets/guides/views/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { View } from "@novorender/api";
export function main(view: View) {
view.animate = (time: number) => {
const t = Math.sin(time / 1000) * .5 + .5;
view.modifyRenderState({ background: { color: [t, t, t, 1] } });
view.modifyRenderState({ background: { color: [t, t, t] } });
};
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8a7dbf

Please sign in to comment.