-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TGALoader use DataTextureLoader #21377
Conversation
Interesting idea! Do you mind modifying |
Notice that the texture is now flipped: https://raw.githack.com/deepkolos/three.js/master/examples/webgl_loader_texture_tga.html When returning the texture data object in |
To make this work, it's also necessary to enhance |
I would prefer the usage |
Overriding |
if DataTextureLoader pass texture to the parse function, there is not need to Overriding const texData = scope.parse( buffer, texture ); but not match |
The return object in return {
data: imageData,
width: header.width,
height: header.height,
flipY: true,
minFilter: THREE.LinearMipmapLinearFilter,
generateMipmaps: true
};
if ( texData.generateMipmaps !== undefined ) {
texture.generateMipmaps = texData.generateMipmaps;
} |
Thanks! |
Description
use DataTexture may use less resource then canvas