SHADE_Y3/Assets/Shaders/DebugDraw_VS.glsl

24 lines
418 B
Plaintext
Raw Normal View History

2022-10-26 16:05:50 +08:00
#version 450
#extension GL_KHR_vulkan_glsl : enable
layout(location = 0) in vec4 aVertexPos;
2022-10-26 16:05:50 +08:00
layout(location = 1) in vec4 aVertColor;
layout(location = 0) out struct
{
vec4 vertColor; // location 0
} Out;
layout(set = 2, binding = 0) uniform CameraData
{
vec4 position;
mat4 vpMat;
} cameraData;
void main()
{
gl_Position = cameraData.vpMat * vec4 (aVertexPos.xyz, 1.0f);
2022-10-26 16:05:50 +08:00
Out.vertColor = aVertColor;
}