Forgot declaration of shadowRay <- shadow_ray
This commit is contained in:
parent
5ddfe068a6
commit
b60e27824b
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ Scene::trace_ray(const Ray &ray,
|
|||
|
||||
Vector3 light_direction;
|
||||
Double ldotn, diffuse_level, ambient_level;
|
||||
Ray shadow_ray;
|
||||
Ray shadowRay;
|
||||
|
||||
for (PointLight *l : lights) {
|
||||
light_direction = (intersection - l->GetOrigin()).normalize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue