Browse Source

RGBELoader: Default to Linear-sRGB. (#25853)

Don McCurdy 2 years ago
parent
commit
779572c05a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      examples/jsm/loaders/RGBELoader.js

+ 3 - 3
examples/jsm/loaders/RGBELoader.js

@@ -3,8 +3,8 @@ import {
 	DataUtils,
 	FloatType,
 	HalfFloatType,
-	NoColorSpace,
-	LinearFilter
+	LinearFilter,
+	LinearSRGBColorSpace
 } from 'three';
 
 // https://github.com/mrdoob/three.js/issues/5552
@@ -445,7 +445,7 @@ class RGBELoader extends DataTextureLoader {
 				case FloatType:
 				case HalfFloatType:
 
-					texture.colorSpace = NoColorSpace;
+					texture.colorSpace = LinearSRGBColorSpace;
 					texture.minFilter = LinearFilter;
 					texture.magFilter = LinearFilter;
 					texture.generateMipmaps = false;