aboutsummaryrefslogtreecommitdiffstats
path: root/include/vec3.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2020-12-21 23:13:25 +0100
committerladevieq <ladevie.quentin@gmail.com>2020-12-21 23:13:25 +0100
commit8da53c5f262b09756e1a93257cdcd5be25807839 (patch)
treec34344074ca8766dafcbf27958f571bf14c35315 /include/vec3.hpp
parent56bed8e38f5b6d9effd77371ad781ae71601205b (diff)
Movable and rotatable camera + dielectric materials
Diffstat (limited to 'include/vec3.hpp')
-rw-r--r--include/vec3.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vec3.hpp b/include/vec3.hpp
index 317f99b..7d38472 100644
--- a/include/vec3.hpp
+++ b/include/vec3.hpp
@@ -53,6 +53,8 @@ vec3 operator/(vec3 u, double scale);
vec3 reflect(vec3 v, vec3 n);
+vec3 refract(const vec3& uv, const vec3& n, double etai_over_etat);
+
std::ostream& operator<<(std::ostream& out, vec3 vec);
vec3 random_in_unit_sphere();