mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 23:53:44 +01:00
fixup
This commit is contained in:
parent
3c279559f5
commit
d60d3073bd
@ -84,7 +84,8 @@ function pixels2tsv(pixels) {
|
|||||||
for(let y = 0; y < pixels.height; y++) {
|
for(let y = 0; y < pixels.height; y++) {
|
||||||
let row = [];
|
let row = [];
|
||||||
for(let x = 0; x < pixels.width; x++) {
|
for(let x = 0; x < pixels.width; x++) {
|
||||||
row.push((pixels.data[((y*pixels.width + x) * 4) + 3] / 255).toFixed(3));
|
// No need to rescale here - this is done automagically by WorldEditAdditions.
|
||||||
|
row.push(pixels.data[((y*pixels.width + x) * 4) + 3] / 255);
|
||||||
}
|
}
|
||||||
result += row.join(`\t`) + `\n`;
|
result += row.join(`\t`) + `\n`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user