fix viewport size
This commit is contained in:
parent
6a0e48a006
commit
b6c85bcb91
|
@ -56,7 +56,7 @@ pub fn main() anyerror!void {
|
|||
|
||||
// Camera
|
||||
const viewportHeight = 2.0;
|
||||
const viewportWidth = @floatToInt(usize, viewportHeight * aspectRatio);
|
||||
const viewportWidth = viewportHeight * aspectRatio;
|
||||
const focalLength = 1.0;
|
||||
|
||||
const origin = Vec3{};
|
||||
|
|
Loading…
Reference in a new issue