Skip to content

Commit 16ddb58

Browse files
committed
Fix path to wgsl
1 parent b96de95 commit 16ddb58

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/scripts/light2/scene/scene.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class LightScene {
3838
async Init() {
3939
console.log("Init Scene")
4040
let shader = await GPU.CreateShaderFromURL(
41-
"scripts/light2/common.wgsl",
41+
"scripts/modules/propagation/common.wgsl",
4242
"scripts/light2/scene/scene.wgsl")
4343

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

7068
this.bind_group_layout = GPU.device.createBindGroupLayout({
69+
label: "Scene",
7170
entries: [{
7271
binding: 0,
7372
storageTexture: {
@@ -92,6 +91,7 @@ export class LightScene {
9291
});
9392

9493
this.bind_group = GPU.device.createBindGroup({
94+
label: "Scene",
9595
layout: this.bind_group_layout,
9696
entries: [{
9797
binding: 0,

0 commit comments

Comments
 (0)