@needle-tools/materialx 1.0.2-next.c468cd8 → 1.0.2
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/package.json +2 -2
- package/src/materialx.helper.ts +0 -1
package/package.json
CHANGED
package/src/materialx.helper.ts
CHANGED
|
@@ -193,7 +193,6 @@ function toThreeUniform(uniforms: any, type: string, value: any, name: string, l
|
|
|
193
193
|
// Save the loading promise in the cache
|
|
194
194
|
const promise = loaders.getTexture(texturePath).then(res => {
|
|
195
195
|
if (res) {
|
|
196
|
-
res = res.clone(); // we need to clone the texture once to avoid colorSpace issues with other materials
|
|
197
196
|
res.colorSpace = THREE.LinearSRGBColorSpace;
|
|
198
197
|
setTextureParameters(res, name, uniforms);
|
|
199
198
|
}
|