mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-11 00:31:28 -05:00
15 lines
292 B
Text
15 lines
292 B
Text
struct shadow_map_t {
|
|
mat4 transform;
|
|
};
|
|
uniform shadow_map_t ShadowMaps[1];
|
|
attribute vec3 _in_position;
|
|
void main ()
|
|
{
|
|
vec4 tmpvar_1;
|
|
tmpvar_1.w = 1.0;
|
|
tmpvar_1.xyz = _in_position.xyz;
|
|
vec4 tmpvar_2;
|
|
tmpvar_2 = (ShadowMaps[0].transform * tmpvar_1);
|
|
gl_Position = tmpvar_2;
|
|
}
|
|
|