Welcome to mirror list, hosted at ThFree Co, Russian Federation.
1 2 3 4 5 6 7 8 9 10 11 12 13
uniform mat4 ShadowModelMatrix; in vec3 pos; out vec4 vPos; flat out int face; void main() { vPos = ShadowModelMatrix * vec4(pos, 1.0); face = gl_InstanceID; }