| 102 | } |
| 103 | |
| 104 | void SaveCubeMap(String outputPath, GFXCubemapHandle &cubemap) |
| 105 | { |
| 106 | if (outputPath.isEmpty()) |
| 107 | { |
| 108 | Con::errorf("IBLUtilities::SaveCubeMap - Cannot save to an empty path!"); |
| 109 | return; |
| 110 | } |
| 111 | |
| 112 | //Write it out |
| 113 | CubemapSaver::save(cubemap, outputPath); |
| 114 | |
| 115 | if (!Platform::isFile(outputPath)) |
| 116 | { |
| 117 | Con::errorf("IBLUtilities::SaveCubeMap - Failed to properly save out the baked irradiance!"); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | void GeneratePrefilterMap(GFXTextureTargetRef renderTarget, GFXCubemapHandle cubemap, U32 mipLevels, GFXCubemapHandle &cubemapOut) |
| 122 | { |
no test coverage detected