SPIRV-Cross/shaders-msl/vert/pointsize.vert
Hans-Kristian Arntzen de33d89074 Add explicit in/out locations everywhere.
Needed for newer glslang. With Vulkan semantics for SPIR-V, all
locations must be explicitly defined.
2017-06-21 09:39:08 +02:00

16 lines
275 B
GLSL

#version 450
uniform params {
mat4 mvp;
float psize;
};
layout(location = 0) in vec4 position;
layout(location = 1) in vec4 color0;
layout(location = 0) out vec4 color;
void main() {
gl_Position = mvp * position;
gl_PointSize = psize;
color = color0;
}