A World Without a Sky Would Be Black

You implemented a sky box early in this book for Blockers; it was the inside of a dungeon room, and it was a way to encompass the level. Sky boxes are always implemented because without one, you would have an empty area where the objects of your world weren't rendered. A plain black sky isn't realistic unless, of course, your game resides inside a vacuum in space (or maybe a black hole). I don't think the tanks here would work too well in a black hole.

I hope you've been noticing a consistent theme in the implementation of Tankers. The code has been rearranged to form more logical units, and that practice continues for the sky box. Rather than make this code reside within the game engine, you create a new ...

Get Beginning 3D Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.