principia/data/shaders/gi.vp
ROllerozxa 958f4f5056 Remove references to unused "GI" graphics effect
Assumedly abbreviation of "global illumination", some kind of alternative to the current way of drawing the shadows. Doesn't work very well when enabled, remove it.
2025-03-09 20:55:04 +01:00

10 lines
170 B
Text

attribute vec3 position;
uniform mat4 MVP;
varying float z;
void main(void)
{
vec4 pos = MVP*vec4(position, 1.);
z = (pos.z + 1.) / 2.;
gl_Position = pos;
}