Nimbin[12]?Games / Entropie / entropie/assets/shaders/shadow.vert

Entropie git · main

Entropie festival game; first steps

sdl c game entropie cmake · first commit 2026-10-10 · last commit 2026-11-02 (19 hours ago) · synced 10 hours ago

C 88.5% Markdown 9.1% GLSL 2.3%
git clone https://git.christianimmanuel.de/games/Entropie.gitwget https://git.christianimmanuel.de/games/Entropie/archive/Entropie.tar.gz
entropie/assets/shaders/shadow.vert 328 B · 11 lines raw
layout (location = 0) in vec3 aPos;

uniform mat4  model;
uniform mat4  lightSpaceMatrix; // lightProjection * lightView
uniform float boilTime;

void main() {
    vec3 world = vec3(model * vec4(aPos, 1.0));
    world += wobble(world, boilTime); // must match scene.vert
    gl_Position = lightSpaceMatrix * vec4(world, 1.0);
}