Added missing files
This commit is contained in:
20
Window_practice/res/shaders/Basic.shader
Normal file
20
Window_practice/res/shaders/Basic.shader
Normal file
@@ -0,0 +1,20 @@
|
||||
#shader vertex
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) in vec4 position;
|
||||
|
||||
void main() {
|
||||
gl_Position = position;
|
||||
};
|
||||
|
||||
|
||||
#shader fragment
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) out vec4 color;
|
||||
|
||||
uniform vec4 u_Color;
|
||||
|
||||
void main() {
|
||||
color = u_Color;
|
||||
};
|
||||
Reference in New Issue
Block a user