feat: use opengl
TODO: - Texture isn't scaling properly - I need to reverse the colours in the frag shader
This commit is contained in:
14
src/shader/pixelbuf.frag
Normal file
14
src/shader/pixelbuf.frag
Normal 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user