diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-05-05 02:41:56 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-05-05 02:41:56 -0400 |
commit | 551b160b816cdfa446de800140aa1c7aef352b19 (patch) | |
tree | 3f5c1f7c24f187e0dae9da6c95538312cdb11489 /resources | |
parent | 045eb047c556898606005e548c16f102ac02e995 (diff) |
Get FBOs working.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/shaders/color.frag | 8 | ||||
-rw-r--r-- | resources/shaders/color.vert | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/resources/shaders/color.frag b/resources/shaders/color.frag new file mode 100644 index 0000000..4a052a1 --- /dev/null +++ b/resources/shaders/color.frag @@ -0,0 +1,8 @@ +#version 330 core + +in vec3 col; +out vec4 fragColor; + +void main() { + fragColor = vec4(col, 1.0); +} diff --git a/resources/shaders/color.vert b/resources/shaders/color.vert new file mode 100644 index 0000000..d449122 --- /dev/null +++ b/resources/shaders/color.vert @@ -0,0 +1,10 @@ +#version 330 core + +layout (location = 0) in vec3 position; +layout (location = 1) in vec3 color; +out vec3 col; + +void main() { + gl_Position = vec4(position, 1.0); + col = color; +} |