setup complete - visible character

This commit is contained in:
2021-07-07 23:20:04 +02:00
parent 9014681460
commit e4c6a45427
53 changed files with 180 additions and 422 deletions

10
bin/imgui.ini Normal file
View File

@@ -0,0 +1,10 @@
[Window][Debug##Default]
Pos=60,60
Size=400,400
Collapsed=0
[Window][babyboigame]
Pos=60,60
Size=352,249
Collapsed=0

BIN
bin/main Executable file

Binary file not shown.

14
bin/shaders/shader.frag Normal file
View File

@@ -0,0 +1,14 @@
#version 330 core
in vec2 texCoord;
out vec4 fragColor;
uniform sampler2D image;
void main()
{
vec4 texColor = texture(image, texCoord);
if(texColor.a < 0.1)
discard;
fragColor = texColor;
}

15
bin/shaders/shader.vert Normal file
View File

@@ -0,0 +1,15 @@
#version 330 core
layout (location = 0) in vec4 aPos;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
out vec2 texCoord;
void main()
{
gl_Position = projection * view * vec4(aPos.xy,0.0,1.0);
texCoord = aPos.zw;
}

View File

@@ -0,0 +1,14 @@
#version 330 core
in vec2 texCoord;
out vec4 fragColor;
uniform sampler2D image;
void main()
{
vec4 texColor = texture(image, texCoord);
if(texColor.a < 0.1)
discard;
fragColor = texColor;
}

View File

@@ -0,0 +1,15 @@
#version 330 core
layout (location = 0) in vec4 aPos;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
uniform int offset[];
out vec2 texCoord;
void main()
{
gl_Position = projection * view * model * vec4(aPos.xy,0.0,1.0);
texCoord = aPos.zw;
}