File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments