Some shader tests for the vanilla Cube 2 Sauerbraten, including:
-
packages/shaders/postfx_box.cfg
Draws a box at any position in world space. -
packages/shaders/postfx_cone.cfg
Draws a cone at any position in world space. -
packages/shaders/postfx_raycaster.cfg
Uses raycasting to render a 3D scene with lighting and textures. -
packages/shaders/postfx_screentext.cfg
Uses an embedded bitmap font to draw text on the screen. -
packages/shaders/worldtext.cfg
Uses an embedded bitmap font to draw text in the world. -
packages/shaders/texture_daynight.cfg
Transitions between two lightmap states over a 10-minute period, with the option to add windows. -
packages/shaders/postfx_camerashake.cfg
Makes you dizzy.
You can run them with the /exec
command:
/exec packages/shaders/postfx_camerashake.cfg
There are also two maps:
-
packages/base/conceptshaders_daynight.ogz
Map setup to visualize the day-to-night texture shader working.
-
packages/base/conceptshaders_playground.ogz
A bunch of weird, unfinished texture/model shaders showing manipulation of vertex positions and colors, including a working light switch and flashlight!
These shaders are still works in progress and not very useful on their own, but even in this incomplete state, I hope they serve as a reference for you to create your own :)