Added Heidrich-Seidel anisotropic BRDF.

This commit is contained in:
Miguel Angel Astor Romero
2017-01-13 15:05:13 -04:00
parent b7f7ba7ee1
commit 8e2b2a8c2a
12 changed files with 111 additions and 57 deletions

View File

@@ -6,7 +6,7 @@ using glm::refract;
const float BIAS = 0.000001f;
const vec3 BCKG_COLOR = vec3(1.0f);
const vec3 BCKG_COLOR = vec3(0.1f);
float Tracer::fresnel(const vec3 & i, const vec3 & n, const float ir1, const float ir2) const {
float cos_t1 = dot(i, n);