Files | |
| dark.cpp | |
Dark Crystal Pyramid renders a stylized pyramid scene with a dramatic beam effect, animated title text, and a textured 3D model. It is a compact example of layering model rendering with text and custom shader passes.
The example loads a pyramid model and a beam model, then renders both with custom shaders. The beam is alpha blended, so it reads as a translucent effect layered over the main object instead of a separate opaque mesh.
The title text is drawn in proc() so it remains tied to the current window size. Mouse drag changes the camera orientation, the wheel adjusts distance, and the scene keeps a slow auto-spin so it remains animated even without input.