SPIRV-Cross/shaders/legacy/fragment/io-blocks.legacy.frag
2017-03-06 14:04:01 +01:00

17 lines
270 B
GLSL

#version 310 es
#extension GL_EXT_shader_io_blocks : require
precision mediump float;
layout(location = 1) in VertexOut
{
vec4 color;
highp vec3 normal;
} vin;
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = vin.color + vin.normal.xyzz;
}