Ported over the Java Edition's title screen panorama.

This commit is contained in:
StevenSYS
2026-03-26 06:28:39 +00:00
committed by Tropical
parent a9a3cbb0f5
commit d18733b14c
4 changed files with 154 additions and 51 deletions

View File

@@ -471,10 +471,10 @@ void Texture::blit(int x, int y, Texture* source, bool rotated) {
}
void Texture::transferFromBuffer(intArray buffer) {
//if (depth == 1) {
// return;
//}
// 4jcraft - move pos out of loops
// if (depth == 1) {
// return;
// }
// 4jcraft - move pos out of loops
data[0]->clear();
// #ifdef __PS3__
// int byteRemapRGBA[] = { 3, 0, 1, 2 };
@@ -487,7 +487,7 @@ void Texture::transferFromBuffer(intArray buffer) {
int totalPixels = width * height * depth;
for (int i = 0; i < totalPixels; i++){
for (int i = 0; i < totalPixels; i++) {
int pixel = buffer[i];
int offset = i * 4;
@@ -501,7 +501,7 @@ void Texture::transferFromBuffer(intArray buffer) {
updateOnGPU();
}
/* for (int z = 0; z < depth; z++) {
int plane = z * height * width * 4;
for (int y = 0; y < height; y++) {