@webxr-jp/mtoon-atlas 0.1.3 → 0.1.5
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.cjs +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -219,12 +219,8 @@ var MToonAtlasMaterial = class _MToonAtlasMaterial extends THREE.ShaderMaterial
|
|
|
219
219
|
setDefine("MTOON_USE_UV", useUv);
|
|
220
220
|
setDefine("OUTLINE", this._isOutline);
|
|
221
221
|
setDefine("OUTLINE_WIDTH_SCREEN", this._isOutline && this._outlineWidthMode === "screenCoordinates");
|
|
222
|
-
if (this.alphaTest === 0) {
|
|
223
|
-
console.log("[MToonAtlasMaterial] updateDefines alphaTest: 0, stack:", new Error().stack);
|
|
224
|
-
}
|
|
225
222
|
if (this.alphaTest > 0) {
|
|
226
223
|
this.defines["ALPHATEST"] = this.alphaTest.toString();
|
|
227
|
-
console.log("[MToonAtlasMaterial] ALPHATEST define set to:", this.alphaTest.toString());
|
|
228
224
|
} else {
|
|
229
225
|
delete this.defines["ALPHATEST"];
|
|
230
226
|
}
|
|
@@ -921,7 +917,6 @@ var MToonAtlasExporterPlugin = class {
|
|
|
921
917
|
const originalAfterParse = this.afterParse.bind(this);
|
|
922
918
|
this.afterParse = (input) => {
|
|
923
919
|
originalAfterParse(input);
|
|
924
|
-
console.log(`[MToonAtlasExporterPlugin] processAccessor cache: ${cacheHits}/${totalCalls} hits (${fingerprintToAccessor.size} unique)`);
|
|
925
920
|
};
|
|
926
921
|
}
|
|
927
922
|
/**
|
|
@@ -1239,7 +1234,8 @@ var MToonAtlasExporterPlugin = class {
|
|
|
1239
1234
|
quality: this.textureCompressionOptions?.quality,
|
|
1240
1235
|
compressionLevel: this.textureCompressionOptions?.compressionLevel,
|
|
1241
1236
|
generateMipmaps: this.textureCompressionOptions?.generateMipmaps,
|
|
1242
|
-
supercompression: this.textureCompressionOptions?.supercompression
|
|
1237
|
+
supercompression: this.textureCompressionOptions?.supercompression,
|
|
1238
|
+
srgb: texture.colorSpace === import_three2.SRGBColorSpace
|
|
1243
1239
|
};
|
|
1244
1240
|
const result = await (0, import_texture_compression.compressToKtx2)(
|
|
1245
1241
|
rgbaData,
|