- Moved #define LT_ENGINE_RESOURCES_*_SHADER_* definitions to files * Note: This was done so for a gcc compilation error caused by R"()" string - Removed test print fps in 'Application::GameLoop()'
17 lines
No EOL
310 B
GLSL
17 lines
No EOL
310 B
GLSL
#version 440 core
|
|
|
|
layout(location = 0) in vec3 a_Position;
|
|
layout(location = 1) in vec4 a_Color;
|
|
|
|
layout(std140, binding = 0) uniform ub_ViewProjection
|
|
{
|
|
mat4 viewProjection;
|
|
};
|
|
|
|
out vec4 vso_FragmentColor;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = viewProjection * vec4(a_Position, 1.0);
|
|
vso_FragmentColor = a_Color;
|
|
} |