Files | |
| moon.cpp | |
Moon renders a moon model surrounded by a set of small pyramids and a starfield. It is a model-viewer style scene that shows how to combine multiple meshes, a custom fragment shader, and sprite-based space effects.
The sample loads moon.obj and pyramid.obj from the example data directory, then renders them with the shared model pipeline from model_example. The custom moon fragment shader can be swapped independently through the shader path argument.
The pyramids are positioned relative to the moon rotation so the whole scene reads like a small orbital diorama. A starfield sprite is layered behind the models to give the scene depth without requiring a separate skybox implementation.