mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
20 lines
356 B
Text
20 lines
356 B
Text
|
struct v2f {
|
||
|
vec4 pos;
|
||
|
vec2 uv0;
|
||
|
vec2 uv1;
|
||
|
};
|
||
|
|
||
|
attribute vec4 position;
|
||
|
|
||
|
uniform mat4 modelViewProjectionMatrix;
|
||
|
|
||
|
varying vec4 xlv_TEXCOORD0;
|
||
|
varying vec4 xlv_TEXCOORD1;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_Position = modelViewProjectionMatrix * position;
|
||
|
xlv_TEXCOORD0 = vec4(position.xy * vec2(4.0), 0.0, 0.0);
|
||
|
xlv_TEXCOORD1 = vec4(position.xy, 0.0, 0.0);
|
||
|
}
|