reze-engine 0.54.7 → 0.54.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { castDistanceStub } from "./cast-distance"
1
2
  import { audioApi } from "../audio-api"
2
3
  import { lyricsApi } from "../lyrics-api"
3
4
  import { anchorAliasWgsl } from "../anchor-table"
@@ -153,7 +154,7 @@ fn rzGrid(uv: vec2f) -> vec4f { return rzGridPrev(uv); }
153
154
  ` +
154
155
  // Stubbed: this module cannot read an attachment the scene pass writes — see
155
156
  // id-api.ts. The author's whole file compiles here, so the names must exist.
156
- idApi(false, 0, 0) +
157
+ idApi(false, 0, 0) + castDistanceStub() +
157
158
  "\n// ── user effect (setEffect) ──\n" +
158
159
  wgsl +
159
160
  /* wgsl */ `
@@ -1,3 +1,4 @@
1
+ import { castDistanceStub } from "./cast-distance"
1
2
  import { RZ_LIGHT_STRUCT_WGSL } from "../lights"
2
3
  import { audioApi } from "../audio-api"
3
4
  import { lyricsApi } from "../lyrics-api"
@@ -176,7 +177,7 @@ export function buildParticleComputeShader(src: ParticleSource, cast: CastLayout
176
177
  PRELUDE +
177
178
  // Stubbed: this module cannot read an attachment the scene pass writes — see
178
179
  // id-api.ts. The author's whole file compiles here, so the names must exist.
179
- idApi(false, 0, 0) +
180
+ idApi(false, 0, 0) + castDistanceStub() +
180
181
  "\n// ── user effect ──\n" +
181
182
  src.wgsl +
182
183
  /* wgsl */ `
@@ -238,7 +239,7 @@ override ADDITIVE: bool = ${src.blend === "additive" ? "true" : "false"};\n` +
238
239
  PRELUDE +
239
240
  // Stubbed: this module cannot read an attachment the scene pass writes — see
240
241
  // id-api.ts. The author's whole file compiles here, so the names must exist.
241
- idApi(false, 0, 0) +
242
+ idApi(false, 0, 0) + castDistanceStub() +
242
243
  "\n// ── user effect ──\n" +
243
244
  src.wgsl +
244
245
  /* wgsl */ `
@@ -1,3 +1,4 @@
1
+ import { castDistanceStub } from "./cast-distance"
1
2
  import { RZ_LIGHT_STRUCT_WGSL } from "../lights"
2
3
  import { audioApi } from "../audio-api"
3
4
  import { lyricsApi } from "../lyrics-api"
@@ -235,7 +236,7 @@ fn rzTurnRadius(a: vec3f, b: vec3f, c: vec3f) -> f32 {
235
236
  lyricsApi(0, 6) +
236
237
  // Stubbed: this module cannot read an attachment the scene pass writes — see
237
238
  // id-api.ts. The author's whole file compiles here, so the names must exist.
238
- idApi(false, 0, 0) +
239
+ idApi(false, 0, 0) + castDistanceStub() +
239
240
  "\n// ── user effect ──\n" +
240
241
  src.wgsl +
241
242
  /* wgsl */ `