Files
Nuake/Editor/resources/Shaders/gizmo.shader
2021-07-10 19:27:13 -04:00

31 lines
496 B
GLSL

#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;
}