mirror of
https://github.com/guilhermewerner/opengl
synced 2025-08-07 07:23:39 +00:00
Load Shaders from Files
This commit is contained in:
8
OpenGL/Shaders/Fragment.glsl
Normal file
8
OpenGL/Shaders/Fragment.glsl
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) out vec4 color;
|
||||
|
||||
void main()
|
||||
{
|
||||
color = vec4(0.0, 1.0, 0.0, 1.0);
|
||||
};
|
8
OpenGL/Shaders/Vertex.glsl
Normal file
8
OpenGL/Shaders/Vertex.glsl
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) in vec4 position;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = position;
|
||||
};
|
Reference in New Issue
Block a user