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:
24
betterRenderer/renderer/source/rt_model.h
Normal file
24
betterRenderer/renderer/source/rt_model.h
Normal 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
|
||||
Reference in New Issue
Block a user