提交 9e30cb42 编写于 作者: M Mr.doob

GeometryCompressionUtils: Removed unused code.

上级 f2eb381d
......@@ -346,32 +346,6 @@ function defaultEncode( x, y, z, bytes ) {
}
function defaultDecode( array, bytes ) {
if ( bytes == 1 ) {
return [
( ( array[ 0 ] / 255 ) * 2.0 ) - 1.0,
( ( array[ 1 ] / 255 ) * 2.0 ) - 1.0,
( ( array[ 2 ] / 255 ) * 2.0 ) - 1.0,
];
} else if ( bytes == 2 ) {
return [
( ( array[ 0 ] / 65535 ) * 2.0 ) - 1.0,
( ( array[ 1 ] / 65535 ) * 2.0 ) - 1.0,
( ( array[ 2 ] / 65535 ) * 2.0 ) - 1.0,
];
} else {
console.error( 'number of bytes must be 1 or 2' );
}
}
// for `Angles` encoding
function anglesEncode( x, y, z ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册