logo

Babylon.js Market

By Lawrence

5 minutes

Catching up?

Dropping in at this lesson? One command reinstalls the library components the build uses so far and writes the scene as it stood at the end of the previous lesson to public/scenes/SpaceshooterFlight-lesson-11/scene.json:

bjs download scene SpaceshooterFlight-lesson-11 --all

The scene you are caught up to at the start of this lesson, rendered from the full asset download.

Copy that scene.json over your src/scenes/spaceshooter.json and you are caught up to the start of this lesson.

There is a sun in this scene, and it reads as a bright circle stuck to the sky. What a real light does to a camera pointed near it — the chain of coloured ghosts across the frame, the halo, the wash as it clears an obstruction — is missing, and it is most of what makes a light feel like a source rather than a decal.

        "LensFlare": {}
registerLensFlareExtension(adapter);

Continue reading

Unlock the Full Course

Every lesson, the runnable examples, and the finished build — yours to keep.

$9one-time

Was this page helpful?

We read every note — tell us what's working and what isn't.

↑↓ NavigateEnter SelectEsc CloseCtrl+K Open Search