Skip to content

Commit

Permalink
fix incorrect colorspace usage
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Sep 7, 2023
1 parent adced29 commit 488287e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/loaders/USDZLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ class USDZLoader extends Loader {

material.clearcoat = 1.0;
material.clearcoatMap = buildTexture( sampler );
material.clearcoatMap.colorSpace = LinearSRGBColorSpace;
material.clearcoatMap.colorSpace = NoColorSpace;

} else if ( 'float inputs:clearcoat' in surface ) {

Expand All @@ -509,7 +509,7 @@ class USDZLoader extends Loader {

material.clearcoatRoughness = 1.0;
material.clearcoatRoughnessMap = buildTexture( sampler );
material.clearcoatRoughnessMap.colorSpace = LinearSRGBColorSpace;
material.clearcoatRoughnessMap.colorSpace = NoColorSpace;

} else if ( 'float inputs:clearcoatRoughness' in surface ) {

Expand Down

0 comments on commit 488287e

Please sign in to comment.