diff --git a/examples/js/loaders/EXRLoader.js b/examples/js/loaders/EXRLoader.js index ee87ca209b6d795a5cced0a93b7fb99b9a3308f1..b1a86bacd2ac5d86e44d47887c02414b972f8049 100644 --- a/examples/js/loaders/EXRLoader.js +++ b/examples/js/loaders/EXRLoader.js @@ -1928,6 +1928,16 @@ THREE.EXRLoader.prototype = Object.assign( Object.create( THREE.DataTextureLoade } + function parseV3f( dataView, offset ) { + + var x = parseFloat32( dataView, offset ); + var y = parseFloat32( dataView, offset ); + var z = parseFloat32( dataView, offset ); + + return [ x, y, z ]; + + } + function parseValue( dataView, buffer, offset, type, size ) { if ( type === 'string' || type === 'stringvector' || type === 'iccProfile' ) { @@ -1962,6 +1972,10 @@ THREE.EXRLoader.prototype = Object.assign( Object.create( THREE.DataTextureLoade return parseV2f( dataView, offset ); + } else if ( type === 'v3f' ) { + + return parseV3f( dataView, offset ); + } else if ( type === 'int' ) { return parseInt32( dataView, offset ); diff --git a/examples/jsm/loaders/EXRLoader.js b/examples/jsm/loaders/EXRLoader.js index 23d74ea85e7a12c38f4f03e28b148f33e978d82f..8fce34a3106271642389e81376921942de797249 100644 --- a/examples/jsm/loaders/EXRLoader.js +++ b/examples/jsm/loaders/EXRLoader.js @@ -1942,6 +1942,16 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype } + function parseV3f( dataView, offset ) { + + var x = parseFloat32( dataView, offset ); + var y = parseFloat32( dataView, offset ); + var z = parseFloat32( dataView, offset ); + + return [ x, y, z ]; + + } + function parseValue( dataView, buffer, offset, type, size ) { if ( type === 'string' || type === 'stringvector' || type === 'iccProfile' ) { @@ -1976,6 +1986,10 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype return parseV2f( dataView, offset ); + } else if ( type === 'v3f' ) { + + return parseV3f( dataView, offset ); + } else if ( type === 'int' ) { return parseInt32( dataView, offset );