Fix light direction
This commit is contained in:
parent
6d7c6c3749
commit
6f88f9fe6d
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