CX/shaders/SimpleFragmentShader.fragmentshader
Marcel Plch 9c5b5d7471
Import simplified code.
Code imported from my seminary work.
In this simplified version it rotates a triangle
using OpenGL libraries.

Crashes upon exit.
2023-10-25 15:02:23 +02:00

12 lines
165 B
Text

#version 330 core
in float colorF;
out vec3 color;
void main() {
if (colorF == 0)
color = vec3(1, 1, 1);
else
color = vec3(0, 0, 0);
}