Skip to content

Commit

Permalink
add base path for textures
Browse files Browse the repository at this point in the history
  • Loading branch information
av8ta committed Apr 8, 2024
1 parent b6aef77 commit 899f2a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/web/src/routes/(CADmium)/Scene.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import Plane from "./Plane.svelte"
import Solid from "./Solid.svelte"
import Sketch from "./Sketch.svelte"
import { base } from "$app/paths"
// prettier-ignore
const log = (function () { const context = "[Scene.svelte]"; const color="gray"; return Function.prototype.bind.call(console.log, console, `%c${context}`, `font-weight:bold;color:${color};`)})()
Expand Down Expand Up @@ -142,7 +143,7 @@

<!-- <T.AmbientLight intensity={0.6} /> -->

<Environment path="/envmap/hdr/" files="kloofendal_28d_misty_puresky_1k.hdr" isBackground={false} format="hdr" />
<Environment path="{base}/envmap/hdr/" files="kloofendal_28d_misty_puresky_1k.hdr" isBackground={false} format="hdr" />

{#each points as [pointName, point] (`${$workbench.name}-${pointName}`)}
<Point3D id={pointName} x={point.x} y={point.y} z={point.z} hidden={point.hidden} {collisionLineMaterial} />
Expand Down

0 comments on commit 899f2a1

Please sign in to comment.