quakeforge/libs/video/renderer/vulkan/shader/bsp_shadow.vert

17 lines
250 B
GLSL
Raw Normal View History

#version 450
layout (push_constant) uniform PushConstants {
mat4 Model;
};
layout (location = 0) in vec4 vertex;
layout (location = 0) out int InstanceIndex;
void
main (void)
{
gl_Position = Model * vertex;
InstanceIndex = gl_InstanceIndex;
}