erebus

view liberebus/src/rt.h @ 31:53a98c148bf8

- introduced SurfaceGeometry to carry all the geometric information input to BRDF sampling and evaluation functions. - made Reflectance keep an (optional) pointer to its material - simplified PhongRefl::sample_dir, with the help of SurfaceGeometry - worked around microsoft's broken std::thread implementation's deadlock on join
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 07 Jun 2014 09:14:17 +0300
parents e2d9bf168a41
children
line source
1 #ifndef RT_H_
2 #define RT_H_
4 #include "geomobj.h"
5 #include "color.h"
6 #include "erebus_impl.h"
8 Color ray_trace(struct erebus *ctx, const Ray &ray, int iter);
9 Color shade(struct erebus *ctx, const RayHit &hit, int iter);
11 #endif // RT_H_