bgfx/3rdparty/glsl-optimizer/tests/vertex/bug-struct-uniform-in.txt
2014-02-10 23:06:13 -08:00

14 lines
252 B
Text

// https://github.com/aras-p/glsl-optimizer/issues/18
struct shadow_map_t
{
mat4 transform;
};
uniform shadow_map_t ShadowMaps[1];
attribute vec3 _in_position;
void main()
{
gl_Position = ShadowMaps[0].transform * vec4(_in_position,1);
}