Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 450 core
- out vec3 OutColor;
- out vec2 TexCoord;
- void main()
- {
- Uint id = Sv_vertexid;
- gl_Position.x = (float) (id / 2) * 4.0 -1.0;
- gl_Position.y = (float) (id % 2) * 4.0 -1.0;
- gl_Position.z = 0.0;
- gl_Position.w = 1.0;
- TexCoord.x = (float)(id / 2) * 2.0;
- TexCoord.y = 1.0 - (float)(id % 2) * 2.0;
- OutColor = float4(1,1,1,1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement