MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / SaveCubeMap

Function SaveCubeMap

Engine/source/T3D/lighting/IBLUtilities.cpp:104–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

processStaticCubemapMethod · 0.85
bakeProbeMethod · 0.85

Calls 3

saveFunction · 0.85
errorfFunction · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected