Skip to content

Commit 249357e

Browse files
committed
Example update
1 parent b832bad commit 249357e

File tree

2 files changed

+172
-237
lines changed

2 files changed

+172
-237
lines changed

examples_tests/41.VisibilityBuffer/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ int main()
351351
//
352352
auto* qnc = am->getMeshManipulator()->getQuantNormalCache();
353353
//loading cache from file
354-
qnc->loadNormalQuantCacheFromFile<asset::CQuantNormalCache::E_CACHE_TYPE::ECT_2_10_10_10>(fs, "../../tmp/normalCache101010.sse", true);
354+
qnc->loadCacheFromFile<asset::EF_A2B10G10R10_SNORM_PACK32>(fs, "../../tmp/normalCache101010.sse", true);
355355

356356
// register the zip
357357
device->getFileSystem()->addFileArchive("../../media/sponza.zip");
@@ -363,7 +363,7 @@ int main()
363363
auto mesh_raw = static_cast<asset::ICPUMesh*>(mesh.get());
364364

365365
//saving cache to file
366-
qnc->saveCacheToFile(asset::CQuantNormalCache::E_CACHE_TYPE::ECT_2_10_10_10, fs, "../../tmp/normalCache101010.sse");
366+
qnc->saveCacheToFile<asset::EF_A2B10G10R10_SNORM_PACK32>(fs, "../../tmp/normalCache101010.sse");
367367

368368
//TODO: change it to vector of smart pointers
369369
core::vector<ICPUMeshBuffer*> meshBuffers;

0 commit comments

Comments
 (0)