Update NanoVDBLoader to use single bunny.nvdb file
This commit is contained in:
16
main.cpp
16
main.cpp
@@ -1,6 +1,7 @@
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user