@webxr-jp/mtoon-atlas 0.3.2 → 0.5.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.
- package/README.md +39 -0
- package/dist/index.cjs +309 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +218 -156
- package/dist/index.d.ts +218 -156
- package/dist/index.js +296 -49
- package/dist/index.js.map +1 -1
- package/dist/nodes/index.cjs +568 -0
- package/dist/nodes/index.cjs.map +1 -0
- package/dist/nodes/index.d.cts +200 -0
- package/dist/nodes/index.d.ts +200 -0
- package/dist/nodes/index.js +569 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/types-C3AJTssR.d.cts +175 -0
- package/dist/types-C3AJTssR.d.ts +175 -0
- package/package.json +8 -3
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* MToonAtlasMaterial 型定義集約
|
|
5
|
+
*
|
|
6
|
+
* パラメータテクスチャ、アトラステクスチャ、スロット属性の型定義
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* アウトライン幅モード
|
|
11
|
+
*
|
|
12
|
+
* MToonMaterialのアウトライン描画における幅の計算方式
|
|
13
|
+
*/
|
|
14
|
+
type OutlineWidthMode = 'none' | 'worldCoordinates' | 'screenCoordinates';
|
|
15
|
+
/**
|
|
16
|
+
* パラメータセマンティクス定義
|
|
17
|
+
*
|
|
18
|
+
* パラメータテクスチャの各テクセル・チャンネルに対応するセマンティック情報
|
|
19
|
+
*/
|
|
20
|
+
type ParameterSemanticId = 'baseColor' | 'opacity' | 'shadeColor' | 'emissiveColor' | 'emissiveIntensity' | 'shadingShift' | 'shadingShiftTextureScale' | 'shadingToony' | 'rimLightingMix' | 'matcapColor' | 'outlineWidth' | 'outlineColor' | 'outlineLightingMix' | 'parametricRimColor' | 'parametricRimLift' | 'parametricRimFresnelPower' | 'uvAnimationScrollX' | 'uvAnimationScrollY' | 'uvAnimationRotation' | 'normalScale';
|
|
21
|
+
/**
|
|
22
|
+
* パラメータセマンティック定義
|
|
23
|
+
*
|
|
24
|
+
* パラメータテクスチャのレイアウト情報
|
|
25
|
+
*/
|
|
26
|
+
interface ParameterSemantic {
|
|
27
|
+
id: ParameterSemanticId;
|
|
28
|
+
texel: number;
|
|
29
|
+
channels: readonly ('r' | 'g' | 'b' | 'a')[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 既定のパラメータテクスチャレイアウト
|
|
33
|
+
*
|
|
34
|
+
* スロット(行)ごとに 9 テクセル(列)を持ち、各テクセルの RGBA に
|
|
35
|
+
* 下表のパラメータを詰める。avatar-optimizer の PARAMETER_LAYOUT と同一で、
|
|
36
|
+
* GLSL 版(shaders/mtoon.frag)のテクセル割り当てとも一致させること。
|
|
37
|
+
*
|
|
38
|
+
* shadingShift は -1〜1 を 0〜1 に詰めて保存しているため、
|
|
39
|
+
* 読み出し側で `value * 2 - 1` して復元する。
|
|
40
|
+
*/
|
|
41
|
+
declare const DEFAULT_PARAMETER_LAYOUT: readonly ParameterSemantic[];
|
|
42
|
+
/**
|
|
43
|
+
* パラメータバッファディスクリプタ
|
|
44
|
+
*
|
|
45
|
+
* avatar-optimizer 等でパックされた MToon パラメータの生 Float32Array 表現。
|
|
46
|
+
* WebGPURenderer 向けの MToonAtlasNodeMaterial はテクスチャを介さず
|
|
47
|
+
* このバッファを直接 UBO として消費する。
|
|
48
|
+
*/
|
|
49
|
+
interface ParameterBufferDescriptor {
|
|
50
|
+
/** パック済みパラメータデータ(slotCount × texelsPerSlot × 4 要素) */
|
|
51
|
+
data: Float32Array;
|
|
52
|
+
/** スロット数(= 元のマテリアル数) */
|
|
53
|
+
slotCount: number;
|
|
54
|
+
/** スロットあたりの vec4 数(通常 9) */
|
|
55
|
+
texelsPerSlot: number;
|
|
56
|
+
/** カスタムレイアウト定義(省略時はデフォルト) */
|
|
57
|
+
semantics?: ParameterSemantic[];
|
|
58
|
+
/** アトラス化されたテクスチャセット */
|
|
59
|
+
atlasedTextures?: AtlasedTextureSet;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* パラメータテクスチャディスクリプタ
|
|
63
|
+
*
|
|
64
|
+
* avatar-optimizer で生成されたパラメータテクスチャの情報(WebGL / GLSL 版向け)
|
|
65
|
+
*/
|
|
66
|
+
interface ParameterTextureDescriptor {
|
|
67
|
+
/** パック済みパラメータテクスチャ */
|
|
68
|
+
texture: THREE.Texture;
|
|
69
|
+
/** スロット数(= 元のマテリアル数) */
|
|
70
|
+
slotCount: number;
|
|
71
|
+
/** スロットあたりのテクセル数(通常9) */
|
|
72
|
+
texelsPerSlot: number;
|
|
73
|
+
/** カスタムレイアウト定義(省略時はデフォルト) */
|
|
74
|
+
semantics?: ParameterSemantic[];
|
|
75
|
+
/** アトラス化されたテクスチャセット */
|
|
76
|
+
atlasedTextures?: AtlasedTextureSet;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* アトラス化テクスチャセット
|
|
80
|
+
*
|
|
81
|
+
* avatar-optimizer で生成されたアトラス化テクスチャの集合
|
|
82
|
+
*/
|
|
83
|
+
interface AtlasedTextureSet {
|
|
84
|
+
/** ベースカラーアトラス(MToonMaterial.map) */
|
|
85
|
+
baseColor?: THREE.Texture;
|
|
86
|
+
/** Shade 乗算テクスチャアトラス(shadeMultiplyTexture) */
|
|
87
|
+
shade?: THREE.Texture;
|
|
88
|
+
/** Shading Shift テクスチャアトラス(shadingShiftTexture) */
|
|
89
|
+
shadingShift?: THREE.Texture;
|
|
90
|
+
/** ノーマルマップアトラス(normalMap) */
|
|
91
|
+
normal?: THREE.Texture;
|
|
92
|
+
/** エミッシブマップアトラス(emissiveMap) */
|
|
93
|
+
emissive?: THREE.Texture;
|
|
94
|
+
/** Matcap テクスチャアトラス(matcapTexture) */
|
|
95
|
+
matcap?: THREE.Texture;
|
|
96
|
+
/** Rim 乗算テクスチャアトラス(rimMultiplyTexture) */
|
|
97
|
+
rim?: THREE.Texture;
|
|
98
|
+
/** UV アニメーションマスクテクスチャアトラス(uvAnimationMaskTexture) */
|
|
99
|
+
uvAnimationMask?: THREE.Texture;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* マテリアルスロット属性設定
|
|
103
|
+
*
|
|
104
|
+
* 頂点属性経由でマテリアルスロットを指定するための設定
|
|
105
|
+
*/
|
|
106
|
+
interface MaterialSlotAttributeConfig {
|
|
107
|
+
/** 属性名(デフォルト: 'mtoonMaterialSlot') */
|
|
108
|
+
name: string;
|
|
109
|
+
/** 説明(オプション) */
|
|
110
|
+
description?: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* MToonAtlasMaterial オプション
|
|
114
|
+
*
|
|
115
|
+
* THREE.ShaderMaterialParameters を拡張した、インスタンシング対応オプション
|
|
116
|
+
*/
|
|
117
|
+
interface MToonAtlasOptions extends THREE.ShaderMaterialParameters {
|
|
118
|
+
/** ベースカラー */
|
|
119
|
+
color?: THREE.ColorRepresentation;
|
|
120
|
+
/** エミッシブカラー */
|
|
121
|
+
emissive?: THREE.ColorRepresentation;
|
|
122
|
+
/** エミッシブ強度 */
|
|
123
|
+
emissiveIntensity?: number;
|
|
124
|
+
/** 透明度 */
|
|
125
|
+
transparent?: boolean;
|
|
126
|
+
/** 深度書き込み */
|
|
127
|
+
depthWrite?: boolean;
|
|
128
|
+
/** パラメータテクスチャディスクリプタ */
|
|
129
|
+
parameterTexture?: ParameterTextureDescriptor;
|
|
130
|
+
/** スロット属性設定 */
|
|
131
|
+
slotAttribute?: MaterialSlotAttributeConfig;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* GLSL 版(MToonAtlasMaterial)と TSL 版(MToonAtlasNodeMaterial)に共通する
|
|
135
|
+
* インターフェース
|
|
136
|
+
*
|
|
137
|
+
* ローダーとエクスポーターはこの範囲だけを使うことで、どちらのマテリアルも扱える
|
|
138
|
+
*/
|
|
139
|
+
interface MToonAtlasMaterialLike extends THREE.Material {
|
|
140
|
+
/** 識別フラグ */
|
|
141
|
+
readonly isMToonAtlasMaterial: true;
|
|
142
|
+
/** パラメータバッファディスクリプタ(TSL 版などで生 Float32Array を直接持つ場合) */
|
|
143
|
+
readonly parameterBuffer?: ParameterBufferDescriptor | undefined;
|
|
144
|
+
/** パラメータテクスチャディスクリプタ(GLSL 版、またはテクスチャ経由で渡された場合) */
|
|
145
|
+
readonly parameterTexture: ParameterTextureDescriptor | undefined;
|
|
146
|
+
/** スロット属性設定 */
|
|
147
|
+
readonly slotAttribute: MaterialSlotAttributeConfig;
|
|
148
|
+
/** アウトライン用マテリアルかどうか */
|
|
149
|
+
isOutline: boolean;
|
|
150
|
+
/** アウトライン幅の計算方式 */
|
|
151
|
+
outlineWidthMode: OutlineWidthMode;
|
|
152
|
+
/** このマテリアルを元にアウトライン用マテリアルを作る */
|
|
153
|
+
createOutlineMaterial(widthMode?: Exclude<OutlineWidthMode, 'none'>): MToonAtlasMaterialLike;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* MToonAtlasLoaderPlugin や avatar-optimizer が生成するマテリアルのコンストラクタ
|
|
157
|
+
*
|
|
158
|
+
* WebGLRenderer では MToonAtlasMaterial(既定)、WebGPURenderer では
|
|
159
|
+
* `@webxr-jp/mtoon-atlas/nodes` の MToonAtlasNodeMaterial を渡す
|
|
160
|
+
*/
|
|
161
|
+
interface MToonAtlasMaterialConstructor {
|
|
162
|
+
new (parameters: {
|
|
163
|
+
parameterBuffer?: ParameterBufferDescriptor;
|
|
164
|
+
parameterTexture?: ParameterTextureDescriptor;
|
|
165
|
+
slotAttribute?: MaterialSlotAttributeConfig;
|
|
166
|
+
name?: string;
|
|
167
|
+
}): MToonAtlasMaterialLike;
|
|
168
|
+
/**
|
|
169
|
+
* true の場合、呼び出し側(avatar-optimizer / Loader)は DataTexture を作らず
|
|
170
|
+
* parameterBuffer(生 Float32Array)を直接渡す
|
|
171
|
+
*/
|
|
172
|
+
readonly prefersParameterBuffer?: boolean;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export { type AtlasedTextureSet as A, DEFAULT_PARAMETER_LAYOUT as D, type MToonAtlasOptions as M, type OutlineWidthMode as O, type ParameterTextureDescriptor as P, type MaterialSlotAttributeConfig as a, type ParameterBufferDescriptor as b, type MToonAtlasMaterialConstructor as c, type ParameterSemanticId as d, type ParameterSemantic as e, type MToonAtlasMaterialLike as f };
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* MToonAtlasMaterial 型定義集約
|
|
5
|
+
*
|
|
6
|
+
* パラメータテクスチャ、アトラステクスチャ、スロット属性の型定義
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* アウトライン幅モード
|
|
11
|
+
*
|
|
12
|
+
* MToonMaterialのアウトライン描画における幅の計算方式
|
|
13
|
+
*/
|
|
14
|
+
type OutlineWidthMode = 'none' | 'worldCoordinates' | 'screenCoordinates';
|
|
15
|
+
/**
|
|
16
|
+
* パラメータセマンティクス定義
|
|
17
|
+
*
|
|
18
|
+
* パラメータテクスチャの各テクセル・チャンネルに対応するセマンティック情報
|
|
19
|
+
*/
|
|
20
|
+
type ParameterSemanticId = 'baseColor' | 'opacity' | 'shadeColor' | 'emissiveColor' | 'emissiveIntensity' | 'shadingShift' | 'shadingShiftTextureScale' | 'shadingToony' | 'rimLightingMix' | 'matcapColor' | 'outlineWidth' | 'outlineColor' | 'outlineLightingMix' | 'parametricRimColor' | 'parametricRimLift' | 'parametricRimFresnelPower' | 'uvAnimationScrollX' | 'uvAnimationScrollY' | 'uvAnimationRotation' | 'normalScale';
|
|
21
|
+
/**
|
|
22
|
+
* パラメータセマンティック定義
|
|
23
|
+
*
|
|
24
|
+
* パラメータテクスチャのレイアウト情報
|
|
25
|
+
*/
|
|
26
|
+
interface ParameterSemantic {
|
|
27
|
+
id: ParameterSemanticId;
|
|
28
|
+
texel: number;
|
|
29
|
+
channels: readonly ('r' | 'g' | 'b' | 'a')[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 既定のパラメータテクスチャレイアウト
|
|
33
|
+
*
|
|
34
|
+
* スロット(行)ごとに 9 テクセル(列)を持ち、各テクセルの RGBA に
|
|
35
|
+
* 下表のパラメータを詰める。avatar-optimizer の PARAMETER_LAYOUT と同一で、
|
|
36
|
+
* GLSL 版(shaders/mtoon.frag)のテクセル割り当てとも一致させること。
|
|
37
|
+
*
|
|
38
|
+
* shadingShift は -1〜1 を 0〜1 に詰めて保存しているため、
|
|
39
|
+
* 読み出し側で `value * 2 - 1` して復元する。
|
|
40
|
+
*/
|
|
41
|
+
declare const DEFAULT_PARAMETER_LAYOUT: readonly ParameterSemantic[];
|
|
42
|
+
/**
|
|
43
|
+
* パラメータバッファディスクリプタ
|
|
44
|
+
*
|
|
45
|
+
* avatar-optimizer 等でパックされた MToon パラメータの生 Float32Array 表現。
|
|
46
|
+
* WebGPURenderer 向けの MToonAtlasNodeMaterial はテクスチャを介さず
|
|
47
|
+
* このバッファを直接 UBO として消費する。
|
|
48
|
+
*/
|
|
49
|
+
interface ParameterBufferDescriptor {
|
|
50
|
+
/** パック済みパラメータデータ(slotCount × texelsPerSlot × 4 要素) */
|
|
51
|
+
data: Float32Array;
|
|
52
|
+
/** スロット数(= 元のマテリアル数) */
|
|
53
|
+
slotCount: number;
|
|
54
|
+
/** スロットあたりの vec4 数(通常 9) */
|
|
55
|
+
texelsPerSlot: number;
|
|
56
|
+
/** カスタムレイアウト定義(省略時はデフォルト) */
|
|
57
|
+
semantics?: ParameterSemantic[];
|
|
58
|
+
/** アトラス化されたテクスチャセット */
|
|
59
|
+
atlasedTextures?: AtlasedTextureSet;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* パラメータテクスチャディスクリプタ
|
|
63
|
+
*
|
|
64
|
+
* avatar-optimizer で生成されたパラメータテクスチャの情報(WebGL / GLSL 版向け)
|
|
65
|
+
*/
|
|
66
|
+
interface ParameterTextureDescriptor {
|
|
67
|
+
/** パック済みパラメータテクスチャ */
|
|
68
|
+
texture: THREE.Texture;
|
|
69
|
+
/** スロット数(= 元のマテリアル数) */
|
|
70
|
+
slotCount: number;
|
|
71
|
+
/** スロットあたりのテクセル数(通常9) */
|
|
72
|
+
texelsPerSlot: number;
|
|
73
|
+
/** カスタムレイアウト定義(省略時はデフォルト) */
|
|
74
|
+
semantics?: ParameterSemantic[];
|
|
75
|
+
/** アトラス化されたテクスチャセット */
|
|
76
|
+
atlasedTextures?: AtlasedTextureSet;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* アトラス化テクスチャセット
|
|
80
|
+
*
|
|
81
|
+
* avatar-optimizer で生成されたアトラス化テクスチャの集合
|
|
82
|
+
*/
|
|
83
|
+
interface AtlasedTextureSet {
|
|
84
|
+
/** ベースカラーアトラス(MToonMaterial.map) */
|
|
85
|
+
baseColor?: THREE.Texture;
|
|
86
|
+
/** Shade 乗算テクスチャアトラス(shadeMultiplyTexture) */
|
|
87
|
+
shade?: THREE.Texture;
|
|
88
|
+
/** Shading Shift テクスチャアトラス(shadingShiftTexture) */
|
|
89
|
+
shadingShift?: THREE.Texture;
|
|
90
|
+
/** ノーマルマップアトラス(normalMap) */
|
|
91
|
+
normal?: THREE.Texture;
|
|
92
|
+
/** エミッシブマップアトラス(emissiveMap) */
|
|
93
|
+
emissive?: THREE.Texture;
|
|
94
|
+
/** Matcap テクスチャアトラス(matcapTexture) */
|
|
95
|
+
matcap?: THREE.Texture;
|
|
96
|
+
/** Rim 乗算テクスチャアトラス(rimMultiplyTexture) */
|
|
97
|
+
rim?: THREE.Texture;
|
|
98
|
+
/** UV アニメーションマスクテクスチャアトラス(uvAnimationMaskTexture) */
|
|
99
|
+
uvAnimationMask?: THREE.Texture;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* マテリアルスロット属性設定
|
|
103
|
+
*
|
|
104
|
+
* 頂点属性経由でマテリアルスロットを指定するための設定
|
|
105
|
+
*/
|
|
106
|
+
interface MaterialSlotAttributeConfig {
|
|
107
|
+
/** 属性名(デフォルト: 'mtoonMaterialSlot') */
|
|
108
|
+
name: string;
|
|
109
|
+
/** 説明(オプション) */
|
|
110
|
+
description?: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* MToonAtlasMaterial オプション
|
|
114
|
+
*
|
|
115
|
+
* THREE.ShaderMaterialParameters を拡張した、インスタンシング対応オプション
|
|
116
|
+
*/
|
|
117
|
+
interface MToonAtlasOptions extends THREE.ShaderMaterialParameters {
|
|
118
|
+
/** ベースカラー */
|
|
119
|
+
color?: THREE.ColorRepresentation;
|
|
120
|
+
/** エミッシブカラー */
|
|
121
|
+
emissive?: THREE.ColorRepresentation;
|
|
122
|
+
/** エミッシブ強度 */
|
|
123
|
+
emissiveIntensity?: number;
|
|
124
|
+
/** 透明度 */
|
|
125
|
+
transparent?: boolean;
|
|
126
|
+
/** 深度書き込み */
|
|
127
|
+
depthWrite?: boolean;
|
|
128
|
+
/** パラメータテクスチャディスクリプタ */
|
|
129
|
+
parameterTexture?: ParameterTextureDescriptor;
|
|
130
|
+
/** スロット属性設定 */
|
|
131
|
+
slotAttribute?: MaterialSlotAttributeConfig;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* GLSL 版(MToonAtlasMaterial)と TSL 版(MToonAtlasNodeMaterial)に共通する
|
|
135
|
+
* インターフェース
|
|
136
|
+
*
|
|
137
|
+
* ローダーとエクスポーターはこの範囲だけを使うことで、どちらのマテリアルも扱える
|
|
138
|
+
*/
|
|
139
|
+
interface MToonAtlasMaterialLike extends THREE.Material {
|
|
140
|
+
/** 識別フラグ */
|
|
141
|
+
readonly isMToonAtlasMaterial: true;
|
|
142
|
+
/** パラメータバッファディスクリプタ(TSL 版などで生 Float32Array を直接持つ場合) */
|
|
143
|
+
readonly parameterBuffer?: ParameterBufferDescriptor | undefined;
|
|
144
|
+
/** パラメータテクスチャディスクリプタ(GLSL 版、またはテクスチャ経由で渡された場合) */
|
|
145
|
+
readonly parameterTexture: ParameterTextureDescriptor | undefined;
|
|
146
|
+
/** スロット属性設定 */
|
|
147
|
+
readonly slotAttribute: MaterialSlotAttributeConfig;
|
|
148
|
+
/** アウトライン用マテリアルかどうか */
|
|
149
|
+
isOutline: boolean;
|
|
150
|
+
/** アウトライン幅の計算方式 */
|
|
151
|
+
outlineWidthMode: OutlineWidthMode;
|
|
152
|
+
/** このマテリアルを元にアウトライン用マテリアルを作る */
|
|
153
|
+
createOutlineMaterial(widthMode?: Exclude<OutlineWidthMode, 'none'>): MToonAtlasMaterialLike;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* MToonAtlasLoaderPlugin や avatar-optimizer が生成するマテリアルのコンストラクタ
|
|
157
|
+
*
|
|
158
|
+
* WebGLRenderer では MToonAtlasMaterial(既定)、WebGPURenderer では
|
|
159
|
+
* `@webxr-jp/mtoon-atlas/nodes` の MToonAtlasNodeMaterial を渡す
|
|
160
|
+
*/
|
|
161
|
+
interface MToonAtlasMaterialConstructor {
|
|
162
|
+
new (parameters: {
|
|
163
|
+
parameterBuffer?: ParameterBufferDescriptor;
|
|
164
|
+
parameterTexture?: ParameterTextureDescriptor;
|
|
165
|
+
slotAttribute?: MaterialSlotAttributeConfig;
|
|
166
|
+
name?: string;
|
|
167
|
+
}): MToonAtlasMaterialLike;
|
|
168
|
+
/**
|
|
169
|
+
* true の場合、呼び出し側(avatar-optimizer / Loader)は DataTexture を作らず
|
|
170
|
+
* parameterBuffer(生 Float32Array)を直接渡す
|
|
171
|
+
*/
|
|
172
|
+
readonly prefersParameterBuffer?: boolean;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export { type AtlasedTextureSet as A, DEFAULT_PARAMETER_LAYOUT as D, type MToonAtlasOptions as M, type OutlineWidthMode as O, type ParameterTextureDescriptor as P, type MaterialSlotAttributeConfig as a, type ParameterBufferDescriptor as b, type MToonAtlasMaterialConstructor as c, type ParameterSemanticId as d, type ParameterSemantic as e, type MToonAtlasMaterialLike as f };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webxr-jp/mtoon-atlas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "アトラス化したテクスチャのためのMToonMaterial",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js",
|
|
13
13
|
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./nodes": {
|
|
16
|
+
"types": "./dist/nodes/index.d.ts",
|
|
17
|
+
"import": "./dist/nodes/index.js",
|
|
18
|
+
"require": "./dist/nodes/index.cjs"
|
|
14
19
|
}
|
|
15
20
|
},
|
|
16
21
|
"files": [
|
|
@@ -25,11 +30,11 @@
|
|
|
25
30
|
"@pixiv/three-vrm": "^3.4.4",
|
|
26
31
|
"@pixiv/three-vrm-materials-mtoon": "^3.4.4",
|
|
27
32
|
"@types/node": "^22.0.0",
|
|
28
|
-
"@types/three": "^0.
|
|
33
|
+
"@types/three": "^0.187.0",
|
|
29
34
|
"@types/upng-js": "^2.1.5",
|
|
30
35
|
"esbuild-raw-plugin": "^0.3.1",
|
|
31
36
|
"jsdom": "^27.3.0",
|
|
32
|
-
"three": "^0.
|
|
37
|
+
"three": "^0.187.0",
|
|
33
38
|
"tsup": "^8.0.0",
|
|
34
39
|
"typescript": "^5.0.0",
|
|
35
40
|
"vitest": "^2.0.0"
|