rusting_engine 2.5.7

Vulkan 3D game engine with GPU-accelerated physics for massive physics-heavy scenes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Rusting shader language, version 1: the built-ins a `#rusting sky 1`
// shader sees. Fields are only ever added at the end, and a change that
// would break a version 1 shader bumps RUSTING_SHADER_VERSION.
#define RUSTING_SHADER_VERSION 1
// What the engine knows about the background pixel before the shader runs.
struct SkyInput {
    // Unit world-space direction from the camera through the pixel.
    vec3 direction;
    // Seconds since the game started.
    float time;
};
#ifndef RUSTING_CUSTOM_SKY
void sky(SkyInput i, inout vec3 color) {}
#endif