Normalize primary ray direction vectors
This commit is contained in:
parent
57f3154986
commit
82c7e75e11
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ PerspectiveCamera::compute_primary_ray(const int x,
|
|||
Vector3 direction = LinearCombination(1.0, get_direction(),
|
||||
x0, GetRight(),
|
||||
y0, GetUp());
|
||||
return Ray(GetOrigin(), direction);
|
||||
return Ray(GetOrigin(), direction.normalize());
|
||||
}
|
||||
|
||||
#pragma mark - Orthographic Camera
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue