| 36 | #include <Internal/profiler.h> |
| 37 | |
| 38 | mat4 GetCubeMapRotation(int i) { |
| 39 | mat4 rot[2]; |
| 40 | if (i == 0) { |
| 41 | rot[0].SetRotationY(PI_f * -0.5f); |
| 42 | rot[1].SetRotationZ(PI_f); |
| 43 | return rot[0] * rot[1]; |
| 44 | } else if (i == 1) { |
| 45 | rot[0].SetRotationY(PI_f * 0.5f); |
| 46 | rot[1].SetRotationZ(PI_f); |
| 47 | return rot[0] * rot[1]; |
| 48 | } else if (i == 2) { |
| 49 | rot[0].SetRotationX(PI_f * 0.5f); |
| 50 | return rot[0]; |
| 51 | } else if (i == 3) { |
| 52 | rot[0].SetRotationX(PI_f * -0.5f); |
| 53 | return rot[0]; |
| 54 | } else if (i == 4) { |
| 55 | rot[0].SetRotationY(PI_f); |
| 56 | rot[1].SetRotationZ(PI_f); |
| 57 | return rot[0] * rot[1]; |
| 58 | } else if (i == 5) { |
| 59 | rot[0].SetRotationZ(PI_f); |
| 60 | return rot[0]; |
| 61 | } |
| 62 | FatalError("Error", "Getting cube map rotation that is not 0-5"); |
| 63 | return mat4(); |
| 64 | } |
| 65 | |
| 66 | GLuint cube_map_fbo = UINT_MAX; |
| 67 |
no test coverage detected