-
-
Notifications
You must be signed in to change notification settings - Fork 35.9k
Closed
Labels
Description
Description of the problem
It's currently impossible to make a half float attributes work, since the GL buffer type is derived from the JS buffer type, and JS doesn't have a half float buffer type.
I'd like to add a special case to Uint16 and Int16 attributes that causes them to be interpreted as half floats.
var myAttr = new THREE.BufferAttribute(new Uint16Array(whatever), 3);
myAttr.useHalfFloat = true;
Would this be acceptable?
Three.js version
- All
Browser
- All of them
OS
- All of them