feat: use opengl

TODO:
- Texture isn't scaling properly
- I need to reverse the colours in the frag shader
This commit is contained in:
2022-09-22 12:23:16 -03:00
parent 26dba16789
commit 1575f517a9
5 changed files with 9418 additions and 21 deletions

14
src/shader/pixelbuf.frag Normal file
View File

@@ -0,0 +1,14 @@
#version 450 core
out vec4 FragColor;
in vec3 ourColor;
in vec2 TexCoord;
// texture sampler
uniform sampler2D texture1;
void main()
{
FragColor = texture(texture1, TexCoord).wzyx;
}