@needle-tools/materialx 1.4.5 → 1.4.6-next.5f948f6

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/README.md CHANGED
@@ -22,11 +22,7 @@ Web runtime for [MaterialX](https://materialx.org/) materials in [Needle Engine]
22
22
 
23
23
  ### Use with Needle Engine
24
24
 
25
- ```ts
26
- import { useNeedleMaterialX } from "@needle-tools/materialx/needle";
27
- // Simply call this function in global scope as soon as possible
28
- useNeedleMaterialX();
29
- ```
25
+ **Needle Engine has built in support for MaterialX shaders.** No changes to your code are necessary. The MaterialX module will import lazily when needed.
30
26
 
31
27
  ### Use with three.js
32
28
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@needle-tools/materialx",
3
3
  "description": "MaterialX material support for three.js and Needle Engine – render physically based MaterialX shaders in the browser via WebAssembly",
4
- "version": "1.4.5",
4
+ "version": "1.4.6-next.5f948f6",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
package/src/constants.js CHANGED
@@ -1,3 +1,6 @@
1
- import pkg from '../package.json' with { type: 'json' };
1
+ // Avoid `import ... with { type: 'json' }` (import attributes) since
2
+ // it requires esbuild 0.18+ / Vite 5+. A default JSON import works in
3
+ // all major bundlers (Vite, Webpack, Rollup) without extra config.
4
+ import pkg from '../package.json';
2
5
 
3
- export const VERSION = pkg.version;
6
+ export const VERSION = pkg.version;