瀏覽代碼

roolback correction

Popov72 4 年之前
父節點
當前提交
725466ea80
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      dist/preview release/what's new.md
  2. 0 1
      loaders/src/glTF/2.0/glTFLoader.ts

+ 0 - 1
dist/preview release/what's new.md

@@ -117,7 +117,6 @@
 - Fix for warning in chrome about passive wheel events ([#9777](https://github.com/BabylonJS/Babylon.js/pull/9777)) ([kaliatech](https://github.com/kaliatech))
 - Fix crash when cloning material in `AssetContainer.instantiateModelsToScene` when mesh is an instanced mesh ([Popov72](https://github.com/Popov72))
 - Fix issue with NinePatch displaying half pixel gaps between slices on Firefox browsers. ([Pryme8](https://github.com/Pryme8))
-- Fix `baseColorFactor` not being converted to linear space when reading a gltf/glb file ([Popov72](https://github.com/Popov72))
 
 ## Breaking changes
 

+ 0 - 1
loaders/src/glTF/2.0/glTFLoader.ts

@@ -1708,7 +1708,6 @@ export class GLTFLoader implements IGLTFLoader {
             if (properties.baseColorFactor) {
                 babylonMaterial.albedoColor = Color3.FromArray(properties.baseColorFactor);
                 babylonMaterial.alpha = properties.baseColorFactor[3];
-                babylonMaterial.albedoColor.toLinearSpaceToRef(babylonMaterial.albedoColor);
             }
             else {
                 babylonMaterial.albedoColor = Color3.White();