From 436ead8b34ed87c90cf48552ae719f34bcb2029a Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Wed, 11 Mar 2026 18:04:07 +0800 Subject: [PATCH] Update NanoVDBLoader to use single bunny.nvdb file --- main.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/main.cpp b/main.cpp index 46adc98c..adf479a3 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "BattleFireDirect.h" #include "StaticMeshComponent.h" #include "stbi/stb_image.h" @@ -17,12 +18,7 @@ LPCWSTR gWindowClassName = L"BattleFire"; void RunNanoVDBTest() { ID3D12GraphicsCommandList* commandList = GetCommandList(); const char* vdbFiles[] = { - "Res/NanoVDB/sphere2.nvdb", - "Res/NanoVDB/bunny.nvdb", - "Res/NanoVDB/torus_knot_helix.nvdb", - "Res/NanoVDB/boat_points.nvdb", - "Res/NanoVDB/explosion.nvdb", - "Res/NanoVDB/nano_wdas_cloud_half.nvdb" + "Res/NanoVDB/bunny.nvdb" }; for (int i = 0; i < sizeof(vdbFiles) / sizeof(vdbFiles[0]); i++) { @@ -102,13 +98,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi StaticMeshComponent staticMeshComponent; staticMeshComponent.InitFromFile(commandList, "Res/Model/Sphere.lhsm"); - bool runTest = false; - for (int i = 0; i < __argc; i++) { - if (strcmp(__argv[i], "-test") == 0) { - runTest = true; - break; - } - } + bool runTest = false; // set to true to run NanoVDB test if (runTest) { RunNanoVDBTest(); }