@adatechnology/game-vfx-three 0.3.0 → 0.3.2
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.global.js
CHANGED
|
@@ -44,6 +44,15 @@ var GameVfxThree = (() => {
|
|
|
44
44
|
createVfxTestModule: () => createVfxTestModule
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
+
// ../game-contracts/dist/index.js
|
|
48
|
+
var KIT_ORIGIN_KEY = "kitOrigin";
|
|
49
|
+
function markKitOrigin(object, origin) {
|
|
50
|
+
const node = object;
|
|
51
|
+
node.userData = node.userData ?? {};
|
|
52
|
+
node.userData[KIT_ORIGIN_KEY] = { ...origin };
|
|
53
|
+
return object;
|
|
54
|
+
}
|
|
55
|
+
|
|
47
56
|
// ../game-vfx/dist/index.js
|
|
48
57
|
var __defProp2 = Object.defineProperty;
|
|
49
58
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -9241,7 +9250,7 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
|
|
|
9241
9250
|
for (const mesh2 of anchors.meshes) mesh2.material.dispose();
|
|
9242
9251
|
anchors = void 0;
|
|
9243
9252
|
};
|
|
9244
|
-
const root = new THREE.Group();
|
|
9253
|
+
const root = markKitOrigin(new THREE.Group(), { owner: "game-vfx-three", kind: "effect" });
|
|
9245
9254
|
options.scene.add(root);
|
|
9246
9255
|
const direction = new THREE.Vector3(...options.lightDirection ?? LAB_LIGHT_DIRECTION).normalize();
|
|
9247
9256
|
const sky = hexToLinearRgb(SKY_COLOR);
|