mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
~ | Shader class working
This commit is contained in:
7
shaders/frag.glsl
Normal file
7
shaders/frag.glsl
Normal file
@ -0,0 +1,7 @@
|
||||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(1.0, 0., 0., 0.);
|
||||
}
|
6
shaders/vertex.glsl
Normal file
6
shaders/vertex.glsl
Normal file
@ -0,0 +1,6 @@
|
||||
#version 330 core
|
||||
layout(location = 0) in vec2 vPos;
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(vPos, 0.0, 1.0);
|
||||
};
|
Reference in New Issue
Block a user