1 #include "EyeLightShader.hxx"
2 #include "Primitive.hxx"
4 EyeLightShader::EyeLightShader(Scene
* scene
,
11 EyeLightShader::~EyeLightShader()
15 EyeLightShader::EyeLightShader()
22 EyeLightShader::Shade(Ray
& ray
)
24 Vec3f N
= ray
.hit()->GetNormal(ray
);
25 float cos_phi
= fabs(ray
.direction().dot(N
));
27 return m_color
* cos_phi
;
This page took 0.043469 seconds and 5 git commands to generate.