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