@xviewer.js/core 1.0.0-alpha.19 → 1.0.0-alpha.20
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/main.js +3 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -3
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/TextureSettings.d.ts +2 -1
- package/types/tween/index.d.ts +1 -1
package/dist/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mesh, EquirectangularReflectionMapping, FileLoader, TextureLoader, MathUtils, Vector3, Quaternion, Raycaster, Vector2, Spherical, Object3D, BoxGeometry, SphereGeometry, PlaneGeometry, HalfFloatType, FloatType, UnsignedByteType, OrthographicCamera, BufferGeometry, Float32BufferAttribute, WebGLRenderTarget, ClampToEdgeWrapping, NearestFilter, LinearFilter, LinearMipMapLinearFilter,
|
|
1
|
+
import { Mesh, EquirectangularReflectionMapping, FileLoader, TextureLoader, SRGBColorSpace, MathUtils, Vector3, Quaternion, Raycaster, Vector2, Spherical, Object3D, BoxGeometry, SphereGeometry, PlaneGeometry, HalfFloatType, FloatType, UnsignedByteType, OrthographicCamera, BufferGeometry, Float32BufferAttribute, WebGLRenderTarget, ClampToEdgeWrapping, NearestFilter, LinearFilter, LinearMipMapLinearFilter, WebGLCubeRenderTarget, DataTexture, RGBAFormat, UVMapping, Scene, LinearToneMapping, PerspectiveCamera, WebGLRenderer, PCFSoftShadowMap, LoadingManager } from 'three';
|
|
2
2
|
import { EXRLoader } from 'three/examples/jsm/loaders/EXRLoader.js';
|
|
3
3
|
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader.js';
|
|
4
4
|
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
@@ -1141,6 +1141,7 @@ class aJSONLoader extends aLoader {
|
|
|
1141
1141
|
class aTextureLoader extends aLoader {
|
|
1142
1142
|
load({ url, onLoad, onProgress, onError, texSettings }) {
|
|
1143
1143
|
const loadCallback = (tex)=>{
|
|
1144
|
+
tex.colorSpace = SRGBColorSpace;
|
|
1144
1145
|
onLoad(Object.assign(tex, texSettings));
|
|
1145
1146
|
};
|
|
1146
1147
|
const loader = new TextureLoader(this.manager.loadingManager);
|
|
@@ -2930,7 +2931,7 @@ ResourceManager._texSettingKeys = [
|
|
|
2930
2931
|
"minFilter",
|
|
2931
2932
|
"format",
|
|
2932
2933
|
"anisotropy",
|
|
2933
|
-
"
|
|
2934
|
+
"colorSpace",
|
|
2934
2935
|
"repeat"
|
|
2935
2936
|
];
|
|
2936
2937
|
|
|
@@ -3546,5 +3547,5 @@ class Plugin extends ObjectInstance {
|
|
|
3546
3547
|
}
|
|
3547
3548
|
}
|
|
3548
3549
|
|
|
3549
|
-
export { Box, CinestationBlendDefinition, CinestationBrain, Component, EventEmitter, FreelookVirtualCamera, Logger, ObjectInstance, Plane, Plugin, PropertyManager, Sphere, SystemInfo, Tween, TweenChain, TweenManager, Viewer, VirtualCamera, aEXRLoader, aFBXLoader, aGLTFLoader, aHDRLoader, aJSONLoader, aTextureLoader, getClassInstance, mixin, property };
|
|
3550
|
+
export { Box, CinestationBlendDefinition, CinestationBrain, Component, Easing, EventEmitter, FreelookVirtualCamera, Logger, ObjectInstance, Plane, Plugin, PropertyManager, Sphere, SystemInfo, Tween, TweenChain, TweenManager, Viewer, VirtualCamera, aEXRLoader, aFBXLoader, aGLTFLoader, aHDRLoader, aJSONLoader, aTextureLoader, getClassInstance, mixin, property };
|
|
3550
3551
|
//# sourceMappingURL=module.js.map
|