@needle-tools/materialx 1.4.6 → 1.5.0-next.b9d5f3f
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/CHANGELOG.md +17 -0
- package/README.md +1 -0
- package/bin/JsMaterialXCore.js +1 -1
- package/bin/JsMaterialXCore.wasm +0 -0
- package/bin/JsMaterialXGenShader.js +1 -1
- package/bin/JsMaterialXGenShader.wasm +0 -0
- package/bin/revision.json +2 -2
- package/package.json +1 -1
- package/src/loader/loader.three.js +34 -6
- package/src/materialx.helper.js +5 -0
- package/src/materialx.js +1 -1
- package/src/materialx.material.js +13 -6
- package/src/materialx.types.d.ts +9 -0
- /package/bin/{SHA_309ccca5d7788f90d773248c88498ddc203dc260 → SHA_2f154972802486867cddc6a79b7ef86952020d3e} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,23 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [1.5.0] – 2026-03-19
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- Vertex displacement support (GLSL and ESSL/WebGL 2)
|
|
11
|
+
- Multioutput nodedef pattern for shared surface + displacement parameters
|
|
12
|
+
- Normal recomputation via screen-space derivatives (dFdx/dFdy) for displaced surfaces
|
|
13
|
+
- Procedural noise displacement (fractal3d, position, math nodes)
|
|
14
|
+
- Texture-based displacement (image node sampling in vertex shader)
|
|
15
|
+
- Displacement animation support via Three.js PropertyBinding
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Skip MaterialX shader closure types (surfaceshader, displacementshader, etc.) in uniform handling instead of logging warnings
|
|
19
|
+
- Alpha mode detection improvements for transparent materials
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- WASM rebuilt with displacement support (MaterialX 1.39.4, Emscripten 3.1.74)
|
|
23
|
+
|
|
7
24
|
## [1.4.3] – 2026-02-20
|
|
8
25
|
- Feat: Add `globalThis.NEEDLE_MATERIALX_LOCATION` to override WASM location. Use `"package"` for package-local files, or a custom path for self-hosted/CDN.
|
|
9
26
|
|
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Web runtime for [MaterialX](https://materialx.org/) materials in [Needle Engine](https://needle.tools) and [three.js](https://threejs.org/). Renders physically based MaterialX shaders in the browser using WebAssembly — load `.mtlx` files or glTF assets with the `NEEDLE_materials_mtlx` extension.
|
|
4
4
|
|
|
5
5
|
- MaterialX to WebGL/WebGPU shader generation via WASM
|
|
6
|
+
- Vertex displacement support (procedural noise, texture-based, animatable)
|
|
6
7
|
- glTF extension for embedding MaterialX materials in `.glb`/`.gltf` files
|
|
7
8
|
- Experimental support for loading raw MaterialX XML (`.mtlx`) files
|
|
8
9
|
- Works standalone with three.js or as a Needle Engine module
|