History

first cut at new faster voxel pipeline

ZappoMan committed 13 years ago

Commit 793a14e1 parent 0f74d4b8 files · +214 −13Browse files

Showing the changes to interface/src/Application.cpp (1 of 8 files). Show all

Unified · Split

interface/src/Application.cpp+4−0
@@ -1541,6 +1541,9 @@ void Application::init() { · 1540 unmodified lines
15411541 _sharedVoxelSystemViewFrustum.setOrientation(glm::quat());
15421542 _sharedVoxelSystemViewFrustum.calculate();
15431543 _sharedVoxelSystem.setViewFrustum(&_sharedVoxelSystemViewFrustum);
1544+
1545+ VoxelNode::removeUpdateHook(&_sharedVoxelSystem);
1546+
15441547 _sharedVoxelSystem.init();
15451548 VoxelTree* tmpTree = _sharedVoxelSystem.getTree();
15461549 _sharedVoxelSystem.changeTree(&_clipboard);
@@ -1588,6 +1591,7 @@ void Application::init() { · 41 unmodified lines
15881591 // Set up VoxelSystem after loading preferences so we can get the desired max voxel count
15891592 _voxels.setMaxVoxels(Menu::getInstance()->getMaxVoxels());
15901593 _voxels.setUseVoxelShader(Menu::getInstance()->isOptionChecked(MenuOption::UseVoxelShader));
1594+ _voxels.setUseFastVoxelPipeline(Menu::getInstance()->isOptionChecked(MenuOption::FastVoxelPipeline));
15911595 _voxels.init();
15921596
15931597

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t