bgfx/3rdparty/glslang/Test/spv.300layout.frag
Branimir Karadžić f46d6a5803 Added glslang.
2016-12-15 14:19:54 -08:00

23 lines
272 B
GLSL

#version 310 es
precision mediump float;
in vec4 pos;
in vec3 color;
layout(location = 7) out vec3 c;
layout(LocatioN = 3) out vec4 p[2];
struct S {
vec3 c;
float f;
};
in S s;
void main()
{
c = color + s.c;
p[1] = pos * s.f;
}