SPIRV-Cross/reference/opt/shaders/vulkan/frag/push-constant.vk.frag

21 lines
303 B
GLSL
Raw Normal View History

2017-11-22 11:08:06 +00:00
#version 310 es
precision mediump float;
precision highp int;
struct PushConstants
{
vec4 value0;
vec4 value1;
};
uniform PushConstants push;
layout(location = 0) out vec4 FragColor;
layout(location = 0) in vec4 vColor;
void main()
{
FragColor = (vColor + push.value0) + push.value1;
}