Fix light direction

This commit is contained in:
Michael Zhang 2023-02-15 01:39:20 -06:00
parent 000003500b
commit 000003603a

View file

@ -61,7 +61,7 @@ impl Scene {
LightKind::Point { location } => {
location - intersection_context.point
}
LightKind::Directional { direction } => direction,
LightKind::Directional { direction } => -direction,
}
.normalize();