Skip to content

Commit

Permalink
fix(HDRCubeTextureLoader): colorSpace <=> encoding fallback (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingshukkundu authored Jan 16, 2024
1 parent a960357 commit da07863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loaders/HDRCubeTextureLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class HDRCubeTextureLoader extends Loader {
const dataTexture = new DataTexture(texData.data, texData.width, texData.height)

dataTexture.type = texture.type
dataTexture.encoding = texture.encoding
if ('colorSpace' in dataTexture) dataTexture.colorSpace = texture.SRGBColorSpace
else dataTexture.encoding = texture.encoding
dataTexture.format = texture.format
dataTexture.minFilter = texture.minFilter
dataTexture.magFilter = texture.magFilter
Expand Down

0 comments on commit da07863

Please sign in to comment.