Updated tutorial to use `inViewport` instead of `visible` for object visibility test. Thanks Chris Lau!