add MSAA, renderer2D, boundingbox
This commit is contained in:
29
Editor/assets/shaders/Renderer2D_Line.glsl
Normal file
29
Editor/assets/shaders/Renderer2D_Line.glsl
Normal file
@ -0,0 +1,29 @@
|
||||
// Basic Texture Shader
|
||||
|
||||
#type vertex
|
||||
#version 430 core
|
||||
|
||||
layout(location = 0) in vec3 a_Position;
|
||||
layout(location = 1) in vec4 a_Color;
|
||||
|
||||
uniform mat4 u_ViewProjection;
|
||||
|
||||
out vec4 v_Color;
|
||||
|
||||
void main()
|
||||
{
|
||||
v_Color = a_Color;
|
||||
gl_Position = u_ViewProjection * vec4(a_Position, 1.0);
|
||||
}
|
||||
|
||||
#type fragment
|
||||
#version 430 core
|
||||
|
||||
layout(location = 0) out vec4 color;
|
||||
|
||||
in vec4 v_Color;
|
||||
|
||||
void main()
|
||||
{
|
||||
color = v_Color;
|
||||
}
|
||||
Reference in New Issue
Block a user