initial version
This commit is contained in:
20
fragment.glsl
Normal file
20
fragment.glsl
Normal file
@@ -0,0 +1,20 @@
|
||||
#version 130
|
||||
|
||||
in float normalizedTime;
|
||||
out vec3 color;
|
||||
|
||||
uniform int type;
|
||||
|
||||
void main() {
|
||||
if(type == 0) {
|
||||
if(normalizedTime > 0)
|
||||
discard;
|
||||
color = vec3(1, 0, 0);
|
||||
} else if(type == 1) {
|
||||
color = vec3(0, 0, 0);
|
||||
} else if(type == 2) {
|
||||
color = vec3(0, 0, 1);
|
||||
} else {
|
||||
color = vec3(0, 0, 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user