babylonjs-loaders 5.48.0 → 5.49.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/babylon.glTF2FileLoader.js +4 -3
- package/babylon.glTF2FileLoader.js.map +1 -1
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +4 -3
- package/babylon.glTFFileLoader.js.map +1 -1
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.js +4 -3
- package/babylonjs.loaders.js.map +1 -1
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -2200,7 +2200,7 @@ var TransmissionHelper = /** @class */ (function () {
|
|
|
2200
2200
|
_this._scene.environmentIntensity = 1.0;
|
|
2201
2201
|
sceneImageProcessingapplyByPostProcess = _this._scene.imageProcessingConfiguration.applyByPostProcess;
|
|
2202
2202
|
if (!_this._options.clearColor) {
|
|
2203
|
-
_this._scene.clearColor.toLinearSpaceToRef(opaqueRenderTarget.clearColor);
|
|
2203
|
+
_this._scene.clearColor.toLinearSpaceToRef(opaqueRenderTarget.clearColor, _this._scene.getEngine().useExactSrgbConversions);
|
|
2204
2204
|
}
|
|
2205
2205
|
else {
|
|
2206
2206
|
opaqueRenderTarget.clearColor.copyFrom(_this._options.clearColor);
|
|
@@ -3714,11 +3714,12 @@ var MSFT_sRGBFactors = /** @class */ (function () {
|
|
|
3714
3714
|
throw new Error("".concat(extraContext, ": Material type not supported"));
|
|
3715
3715
|
}
|
|
3716
3716
|
var promise = _this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial);
|
|
3717
|
+
var useExactSrgbConversions = babylonMaterial.getScene().getEngine().useExactSrgbConversions;
|
|
3717
3718
|
if (!babylonMaterial.albedoTexture) {
|
|
3718
|
-
babylonMaterial.albedoColor.toLinearSpaceToRef(babylonMaterial.albedoColor);
|
|
3719
|
+
babylonMaterial.albedoColor.toLinearSpaceToRef(babylonMaterial.albedoColor, useExactSrgbConversions);
|
|
3719
3720
|
}
|
|
3720
3721
|
if (!babylonMaterial.reflectivityTexture) {
|
|
3721
|
-
babylonMaterial.reflectivityColor.toLinearSpaceToRef(babylonMaterial.reflectivityColor);
|
|
3722
|
+
babylonMaterial.reflectivityColor.toLinearSpaceToRef(babylonMaterial.reflectivityColor, useExactSrgbConversions);
|
|
3722
3723
|
}
|
|
3723
3724
|
return promise;
|
|
3724
3725
|
}
|