Update TUTORIAL.md

This commit is contained in:
lawnjelly 2019-09-18 13:28:31 +01:00 committed by GitHub
parent 6c02ab9235
commit 3df9e1e1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ func _ready():
func _process(delta):
$Camera.rotate_y(delta)
```
This script tells LPortal to convert and prepare the rooms for rendering, and sets the camera LPortal will use. You also need to register the camera as a DOB (dynamic object) with LPortal, because it may move around between rooms.
15) Now run the project. If all goes well you should now see the camera rotating from above, and different parts of the rooms get hidden and shown as they come into and out of view.
![culling](images/culling.png)