@adatechnology/game-vfx-three 0.3.0 → 0.3.1
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.
- package/dist/index.global.js +10 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/renderer.ts
|
|
2
|
+
import { markKitOrigin } from "@adatechnology/game-contracts";
|
|
2
3
|
import { colorOfChunk, createVfx, hexToLinearRgb } from "@adatechnology/game-vfx";
|
|
3
4
|
|
|
4
5
|
// src/shaders/glow.ts
|
|
@@ -1162,7 +1163,7 @@ function createVfxRenderer(THREE, options) {
|
|
|
1162
1163
|
for (const mesh of anchors.meshes) mesh.material.dispose();
|
|
1163
1164
|
anchors = void 0;
|
|
1164
1165
|
};
|
|
1165
|
-
const root = new THREE.Group();
|
|
1166
|
+
const root = markKitOrigin(new THREE.Group(), { owner: "game-vfx-three", kind: "effect" });
|
|
1166
1167
|
options.scene.add(root);
|
|
1167
1168
|
const direction = new THREE.Vector3(...options.lightDirection ?? LAB_LIGHT_DIRECTION).normalize();
|
|
1168
1169
|
const sky = hexToLinearRgb(SKY_COLOR);
|