Fix light direction
This commit is contained in:
parent
000003500b
commit
000003603a
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ impl Scene {
|
||||||
LightKind::Point { location } => {
|
LightKind::Point { location } => {
|
||||||
location - intersection_context.point
|
location - intersection_context.point
|
||||||
}
|
}
|
||||||
LightKind::Directional { direction } => direction,
|
LightKind::Directional { direction } => -direction,
|
||||||
}
|
}
|
||||||
.normalize();
|
.normalize();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue