mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
22 lines
255 B
GLSL
22 lines
255 B
GLSL
#version 450
|
|
layout (push_constant) uniform Block
|
|
{
|
|
mat4 uWorld;
|
|
mat4 uProj;
|
|
vec4 color1;
|
|
vec4 color2;
|
|
} a;
|
|
|
|
vec4 getWorld();
|
|
vec4 getColor2();
|
|
|
|
out vec4 oColor;
|
|
|
|
void
|
|
main()
|
|
{
|
|
oColor = a.color1 * getColor2();
|
|
|
|
gl_Position = a.uProj * getWorld();
|
|
}
|