Skip to content

Commit 3266835

Browse files
committed
fix quickshd example
1 parent 81d9d23 commit 3266835

File tree

1 file changed

+3
-0
lines changed
  • demo/quickshd/source

1 file changed

+3
-0
lines changed

demo/quickshd/source/app.d

+3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ class Game : Core {
3030
}
3131

3232
class PlayScene : Scene3D {
33+
SceneCamera3D cam;
3334
Effect postfx1;
3435
Effect cubefx1;
3536
Cube cube1;
3637

3738
override void on_start() {
3839
clear_color = Colors.LIGHTGRAY;
3940

41+
cam = (cast(Viewport3D) viewports[0]).cam;
42+
4043
// set the camera position
4144
cam.entity.position = Vector3(0, 10, 10);
4245

0 commit comments

Comments
 (0)