Added editor Gizmos, and shader manager

This commit is contained in:
Antoine Pilote
2021-07-10 19:27:13 -04:00
parent 935e0831a7
commit 81db910e7f
12 changed files with 170 additions and 118 deletions

View File

@@ -0,0 +1,31 @@
#shader vertex
#version 460 core
layout(location = 0) in vec3 Position;
layout(location = 1) in vec2 UV;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
out sample vec2 a_UV;
void main()
{
a_UV = UV;
gl_Position = projection * view * model * vec4(Position, 1.0);
}
#shader fragment
#version 460 core
out vec4 FragColor;
in vec2 a_UV;
uniform sampler2D gizmo_texture;
void main()
{
vec4 px_color = texture(gizmo_texture, a_UV).rgba;
FragColor = px_color;
}