Fix light direction

This commit is contained in:
Michael Zhang 2023-02-15 01:39:20 -06:00
parent 6d7c6c3749
commit 6f88f9fe6d

View file

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