This commit is contained in:
yggdrasil75
2026-02-21 11:13:45 -05:00
parent dc36b93e4f
commit cb0b8b7643

View File

@@ -1272,7 +1272,7 @@ public:
for (int y = 0; y < height; ++y) { for (int y = 0; y < height; ++y) {
for (int x = 0; x < width; ++x) { for (int x = 0; x < width; ++x) {
int pidx = (y * width + x); int pidx = (y * width + x);
int idx = pidx * channels; int idx = pidx * 3;
float px = (2.0f * (x + 0.5f) / width - 1.0f) * tanfovx; float px = (2.0f * (x + 0.5f) / width - 1.0f) * tanfovx;
float py = (1.0f - 2.0f * (y + 0.5f) / height) * tanfovy; float py = (1.0f - 2.0f * (y + 0.5f) / height) * tanfovy;