diff --git a/examples/js/loaders/TGALoader.js b/examples/js/loaders/TGALoader.js index dbf46a50b14a6c8144308868dbd3aae8864210fe..b0713373ef9fc605d8b46c8072b3daa8f81afaad 100644 --- a/examples/js/loaders/TGALoader.js +++ b/examples/js/loaders/TGALoader.js @@ -390,36 +390,36 @@ THREE.TGALoader.prototype._parser = function ( buffer ) { x_start = 0; x_step = 1; x_end = width; - y_start = 0; - y_step = 1; - y_end = height; + y_start = height - 1; + y_step = -1; + y_end = -1; break; case TGA_ORIGIN_BL: x_start = 0; x_step = 1; x_end = width; - y_start = height - 1; - y_step = - 1; - y_end = - 1; + y_start = 0; + y_step = 1; + y_end = height; break; case TGA_ORIGIN_UR: x_start = width - 1; x_step = - 1; x_end = - 1; - y_start = 0; - y_step = 1; - y_end = height; + y_start = height - 1; + y_step = -1; + y_end = -1; break; case TGA_ORIGIN_BR: x_start = width - 1; x_step = - 1; x_end = - 1; - y_start = height - 1; - y_step = - 1; - y_end = - 1; + y_start = 0; + y_step = 1; + y_end = height; break; }