@dice-o-rolla/dice-assets 0.3.0 → 0.4.0

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.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -37,10 +37,11 @@ Rapier reports contact force on every simulation step while two colliders remain
37
37
  `ImpactSoundGate` combines that stream with collision start/end events so each physical contact
38
38
  produces one sound instead of an overlapping retrigger on every fixed step.
39
39
 
40
- For Three.js, pass a `materialProvider` factory to `ThreeDiceRenderer`; the factory receives its
41
- active `WebGLRenderer` and can construct `ThreeAssetMaterialProvider`. Call `prepareSkin()` before
42
- dice using that skin can spawn. It loads KTX2 through Three's `KTX2Loader`, shares texture instances, uses the
43
- packed ORM map for AO/roughness/metalness, and composites the face atlas in the material shader.
40
+ For Three.js, pass a `materialProvider` factory to `ThreeDiceRenderer` or `TopDownDiceRenderer`; the
41
+ factory receives its active `WebGLRenderer` and can construct `ThreeAssetMaterialProvider`. Call
42
+ `prepareSkin()` before dice using that skin can spawn. It loads KTX2 through Three's `KTX2Loader`,
43
+ shares texture instances, uses the packed ORM map for AO/roughness/metalness, and composites the face
44
+ atlas in the material shader.
44
45
 
45
46
  ## Asset pipeline
46
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dice-o-rolla/dice-assets",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Optional Web Audio and KTX2/PBR asset system for Dice O Rolla.",
5
5
  "keywords": [
6
6
  "assets",
@@ -43,7 +43,7 @@
43
43
  "registry": "https://registry.npmjs.org/"
44
44
  },
45
45
  "dependencies": {
46
- "@dice-o-rolla/dice-renderer-three": "0.3.0",
46
+ "@dice-o-rolla/dice-renderer-three": "0.4.0",
47
47
  "@types/three": "^0.185.0",
48
48
  "three": "^0.185.0"
49
49
  },