16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 20:39:18 +02:00

add cpu-side submodel structure for ray testing

This commit is contained in:
MichauSto
2025-11-16 17:46:57 +01:00
committed by Hirek
parent acc4cca4c2
commit 0bde1e44db
8 changed files with 240 additions and 20 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include <glm/vec3.hpp>
#include <memory>
#include "nvrenderer/nvrenderer.h"
class TSubModel;
class TModel3d;
namespace Rt {
struct IRtModel {
virtual TSubModel const* Intersect(NvRenderer::Renderable const& renderable,
glm::dvec3 const& ro,
glm::dvec3 const& rd) const {
return nullptr;
}
virtual ~IRtModel() = default;
};
std::shared_ptr<IRtModel> CreateRtModel(TModel3d const* src,
NvRenderer const* owner);
} // namespace Rt