add oidn
This commit is contained in:
parent
7321acfb3d
commit
9160e343c3
10 changed files with 87 additions and 20 deletions
|
|
@ -5,6 +5,7 @@ file(GLOB SOURCES "./private/*.cpp" "./private/*/*.cpp")
|
|||
file(GLOB HEADERS "./public/*.hpp" "./public/*/*.hpp" "./applications/*.hpp")
|
||||
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS})
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ./public/)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC 3DScene Connection)
|
||||
|
||||
### -------------------------- Applications -------------------------- ###
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ namespace tp {
|
|||
|
||||
public:
|
||||
RayTracer() = default;
|
||||
|
||||
void render(const Scene& scene, OutputBuffers& out, const RenderSettings& settings);
|
||||
|
||||
private:
|
||||
|
|
@ -34,6 +35,7 @@ namespace tp {
|
|||
TrigCache* trig = nullptr;
|
||||
Vec3F hitPos = { 0, 0, 0 };
|
||||
bool hit = false;
|
||||
bool inv = false;
|
||||
};
|
||||
|
||||
struct LightData {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue