cloudy-raytracer/shader/mirrorshader.cpp

13 lines
340 B
C++
Raw Normal View History

2022-11-11 14:39:48 +01:00
#include "scene/scene.h"
#include "shader/mirrorshader.h"
MirrorShader::MirrorShader() {}
Color MirrorShader::shade(Scene const &scene, Ray const &ray) const {
// IMPLEMENT ME
// Calculate the reflection vector
// Create a new reflection ray
// Send the new ray out into the scene and return the result
return Color(0, 0, 1);
}