Skip to content

Commit

Permalink
Fix path to wgsl
Browse files Browse the repository at this point in the history
  • Loading branch information
s-macke committed Aug 31, 2024
1 parent b96de95 commit 16ddb58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/light2/scene/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class LightScene {
async Init() {
console.log("Init Scene")
let shader = await GPU.CreateShaderFromURL(
"scripts/light2/common.wgsl",
"scripts/modules/propagation/common.wgsl",
"scripts/light2/scene/scene.wgsl")

// 0: color emitter circular harmonics, z-component
Expand All @@ -64,10 +64,9 @@ export class LightScene {
ShowError("Creation of SDF failed", e as Error)
throw e
}
//this.textureSignedDistance = await GPU.createTextureFromTexture(this.sdf.texturea, "rgba16float")
//this.textureSignedDistance = this.sdf.texturea

this.bind_group_layout = GPU.device.createBindGroupLayout({
label: "Scene",
entries: [{
binding: 0,
storageTexture: {
Expand All @@ -92,6 +91,7 @@ export class LightScene {
});

this.bind_group = GPU.device.createBindGroup({
label: "Scene",
layout: this.bind_group_layout,
entries: [{
binding: 0,
Expand Down

0 comments on commit 16ddb58

Please sign in to comment.