mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
use gfx queue when loading dynamic textures fix possible timeout in light culling exclude lods & transparencies from lod test add cpu-side submodel structure for ray testing
24 lines
572 B
C++
24 lines
572 B
C++
#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
|