Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
emeiri committed Dec 6, 2024
1 parent 478712a commit 9f35913
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Common/cubemap_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ static void ConvertEquirectangularMapToCubemap(Bitmap& b, std::vector<Bitmap>& C
int clampW = b.w_ - 1;
int clampH = b.h_ - 1;

for (int face = 0; face != 6; face++) {
for (int i = 0; i != FaceSize; i++) {
for (int j = 0; j != FaceSize; j++) {
for (int face = 0; face < CUBEMAP_NUM_FACES; face++) {
for (int i = 0; i < FaceSize; i++) {
for (int j = 0; j < FaceSize; j++) {
glm::vec3 P = FaceCoordsToXYZ(i, j, face, FaceSize);
float R = sqrtf(P.x * P.x + P.y * P.y);// //hypot(P.x, P.y);
float theta = atan2f(P.y, P.x);
Expand Down Expand Up @@ -155,9 +155,9 @@ static void ConvertEquirectangularMapToCubemap(Bitmap& b, std::vector<Bitmap>& C
else {
Cubemap[TargetFace].setPixel(i /*x*/, j /*y*/, color);
}
}
};
}
} // j loop
} // i loop
} // Face loop
}


Expand Down

0 comments on commit 9f35913

Please sign in to comment.