Преглед на файлове

DracoLoader: Normalise color attributes by default (#26036)

* normalise color attributes by default

* set normalised if not float32
George преди 2 години
родител
ревизия
0d9af1426c
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      examples/jsm/loaders/DRACOLoader.js

+ 2 - 0
examples/jsm/loaders/DRACOLoader.js

@@ -209,6 +209,8 @@ class DRACOLoader extends Loader {
 
 				this._assignVertexColorSpace( attribute, result.vertexColorSpace );
 
+				attribute.normalized = ( array instanceof Float32Array ) === false;
+
 			}
 
 			geometry.setAttribute( name, attribute );