Tech ENABLE_RAYCAST_PICKING - Raytraced picking of volumes

This commit is contained in:
enricoturri1966 2023-10-28 17:54:09 +08:00 committed by Noisyfox
parent 02f83f29c7
commit 3577a259d5
19 changed files with 690 additions and 152 deletions

View file

@ -13,6 +13,7 @@
#include "GLModel.hpp"
#include "GLShader.hpp"
#include "MeshUtils.hpp"
#include <functional>
#include <optional>
@ -202,6 +203,8 @@ public:
EHoverState hover;
GUI::GLModel model;
// raycaster used for picking
std::unique_ptr<GUI::MeshRaycaster> mesh_raycaster;
// BBS
mutable std::vector<GUI::GLModel> mmuseg_models;
mutable ObjectBase::Timestamp mmuseg_ts;