principia/data/shaders/gem.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

25 lines
371 B
Text

attribute vec3 position;
attribute vec3 normal;
uniform mat4 MVP;
uniform mat4 MV;
uniform mat3 N;
UNIFORMS
varying mediump vec3 FS_normal;
varying mediump vec3 FS_eye;
VARYINGS
void main(void)
{
FS_normal = N*normal;
vec4 pos = MVP*vec4(position, 1.);
SET_SHADOW
SET_AMBIENT_OCCL
FS_eye = (MV*vec4(position, 1.)).xyz;
gl_Position = pos;
}