diff options
Diffstat (limited to 'rtiaw.go')
-rw-r--r-- | rtiaw.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -22,7 +22,10 @@ func main() { world.Add(Sphere{Vec3{-1.0, 0 , -1 }, 0.4, mat_bubble}); world.Add(Sphere{Vec3{ 1.0, 0 , -1 }, 0.5, mat_right}); - cam := NewCamera(400, 16.0/9.0, 100, 50); + cam := NewCamera(400, 16.0/9.0, + 100, 50, + 20, Vec3{-2, 2, 1}, + Vec3{0, 0, -1}, Vec3{0, 1, 0}); cam.Render(world); dur := time.Since(start); |