Updated assets - Breaking change
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
#version 330 core
|
||||
|
||||
in vec2 TexCoord;
|
||||
uniform sampler2D u_Text;
|
||||
uniform vec4 u_Colr;
|
||||
out vec4 FragColor;
|
||||
|
||||
void main() {
|
||||
vec4 color = texture(u_Text, TexCoord);
|
||||
FragColor = color * u_Colr;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
#version 300 es
|
||||
#ifdef GL_ES
|
||||
|
||||
#else
|
||||
#extension GL_ARB_separate_shader_objects : enable
|
||||
#endif
|
||||
|
||||
layout (location = 0) in vec3 aPos;
|
||||
layout (location = 1) in vec2 aTexCoord;
|
||||
|
||||
uniform mat4 u_Proj;
|
||||
uniform mat4 u_View;
|
||||
uniform mat4 u_Modl;
|
||||
|
||||
out vec2 TexCoord;
|
||||
|
||||
void main() {
|
||||
gl_Position = u_Proj * u_View * u_Modl * vec4(aPos, 1.0);
|
||||
TexCoord = vec2(aTexCoord.x, aTexCoord.y);
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user