mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
18 lines
297 B
Text
18 lines
297 B
Text
#version 140
|
|
uniform vec2 p;
|
|
in vec4 position;
|
|
in vec4 icol;
|
|
out vec4 col;
|
|
void main ()
|
|
{
|
|
vec4 tmpvar_1;
|
|
tmpvar_1 = icol;
|
|
col = tmpvar_1;
|
|
vec4 tmpvar_2;
|
|
tmpvar_2.zw = vec2(0.0, 0.0);
|
|
tmpvar_2.xy = p.xy;
|
|
vec4 tmpvar_3;
|
|
tmpvar_3 = (tmpvar_2 + position);
|
|
gl_Position = tmpvar_3;
|
|
}
|
|
|