mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
14 lines
252 B
Text
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);
|
|
}
|