瀏覽代碼

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 );