reze-engine 0.54.9 → 0.54.10
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/shaders/passes/grid.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/shaders/passes/grid.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAA;AAkC7C,eAAO,MAAM,QAAQ,OAAO,CAAA;AAC5B,uEAAuE;AACvE,eAAO,MAAM,UAAU,EAAE,gBAAgC,CAAA;AAEzD,gDAAgD;AAChD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA6B1F;AAWD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CA6EnF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { castDistanceStub } from "./cast-distance";
|
|
2
1
|
import { audioApi } from "../audio-api";
|
|
3
2
|
import { lyricsApi } from "../lyrics-api";
|
|
4
3
|
import { anchorAliasWgsl } from "../anchor-table";
|
|
@@ -146,7 +145,20 @@ fn rzGrid(uv: vec2f) -> vec4f { return rzGridPrev(uv); }
|
|
|
146
145
|
` +
|
|
147
146
|
// Stubbed: this module cannot read an attachment the scene pass writes — see
|
|
148
147
|
// id-api.ts. The author's whole file compiles here, so the names must exist.
|
|
149
|
-
idApi(false, 0, 0) +
|
|
148
|
+
idApi(false, 0, 0) +
|
|
149
|
+
// Inlined rather than imported from cast-distance, and NOT for tidiness.
|
|
150
|
+
//
|
|
151
|
+
// This module and composite.ts import each other — grid takes
|
|
152
|
+
// EFFECT_SCENE_API from it, composite takes gridReadApi from here — and that
|
|
153
|
+
// cycle has always been benign because both only touch the other inside
|
|
154
|
+
// functions. Adding an import here put a third module ahead of composite in
|
|
155
|
+
// grid's own evaluation order, which is enough to change where a bundler
|
|
156
|
+
// enters the cycle: Node's loader tolerated it and a browser one threw
|
|
157
|
+
// "Cannot access 'grid' before initialization" at load.
|
|
158
|
+
//
|
|
159
|
+
// One line of WGSL is not worth an import into a module that is already in a
|
|
160
|
+
// cycle. The other mounts import it normally — none of them is.
|
|
161
|
+
"fn rzCastDistance(uv: vec2f) -> f32 { return 1.0e30; }\n" +
|
|
150
162
|
"\n// ── user effect (setEffect) ──\n" +
|
|
151
163
|
wgsl +
|
|
152
164
|
/* wgsl */ `
|
package/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { castDistanceStub } from "./cast-distance"
|
|
2
1
|
import { audioApi } from "../audio-api"
|
|
3
2
|
import { lyricsApi } from "../lyrics-api"
|
|
4
3
|
import { anchorAliasWgsl } from "../anchor-table"
|
|
@@ -154,7 +153,20 @@ fn rzGrid(uv: vec2f) -> vec4f { return rzGridPrev(uv); }
|
|
|
154
153
|
` +
|
|
155
154
|
// Stubbed: this module cannot read an attachment the scene pass writes — see
|
|
156
155
|
// id-api.ts. The author's whole file compiles here, so the names must exist.
|
|
157
|
-
idApi(false, 0, 0) +
|
|
156
|
+
idApi(false, 0, 0) +
|
|
157
|
+
// Inlined rather than imported from cast-distance, and NOT for tidiness.
|
|
158
|
+
//
|
|
159
|
+
// This module and composite.ts import each other — grid takes
|
|
160
|
+
// EFFECT_SCENE_API from it, composite takes gridReadApi from here — and that
|
|
161
|
+
// cycle has always been benign because both only touch the other inside
|
|
162
|
+
// functions. Adding an import here put a third module ahead of composite in
|
|
163
|
+
// grid's own evaluation order, which is enough to change where a bundler
|
|
164
|
+
// enters the cycle: Node's loader tolerated it and a browser one threw
|
|
165
|
+
// "Cannot access 'grid' before initialization" at load.
|
|
166
|
+
//
|
|
167
|
+
// One line of WGSL is not worth an import into a module that is already in a
|
|
168
|
+
// cycle. The other mounts import it normally — none of them is.
|
|
169
|
+
"fn rzCastDistance(uv: vec2f) -> f32 { return 1.0e30; }\n" +
|
|
158
170
|
"\n// ── user effect (setEffect) ──\n" +
|
|
159
171
|
wgsl +
|
|
160
172
|
/* wgsl */ `
|