lets use opengl instead
This commit is contained in:
14
build/shaders/shader.fs
Normal file
14
build/shaders/shader.fs
Normal file
@ -0,0 +1,14 @@
|
||||
#version 330 core
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec3 ourColor;
|
||||
in vec2 TexCoord;
|
||||
|
||||
uniform sampler2D texture1;
|
||||
uniform sampler2D texture2;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = texture(texture2, TexCoord);
|
||||
}
|
15
build/shaders/shader.vs
Normal file
15
build/shaders/shader.vs
Normal file
@ -0,0 +1,15 @@
|
||||
#version 330 core
|
||||
|
||||
layout (location = 0) in vec3 aPos;
|
||||
layout (location = 1) in vec3 aColor;
|
||||
layout (location = 2) in vec2 aTexCoord;
|
||||
|
||||
out vec3 ourColor;
|
||||
out vec2 TexCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(aPos, 1.0);
|
||||
ourColor = aColor;
|
||||
TexCoord = aTexCoord;
|
||||
}
|
BIN
build/src/glad.c.o
Normal file
BIN
build/src/glad.c.o
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/src/stb_image.cpp.o
Normal file
BIN
build/src/stb_image.cpp.o
Normal file
Binary file not shown.
BIN
build/textures/awesomeface.png
Normal file
BIN
build/textures/awesomeface.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
BIN
build/textures/container.jpg
Normal file
BIN
build/textures/container.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 119 KiB |
BIN
build/textures/wg.jpg
Normal file
BIN
build/textures/wg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
BIN
build/untap
BIN
build/untap
Binary file not shown.
Reference in New Issue
Block a user