Nove repo opengl-learning
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#version 330
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
if (!gl_FrontFacing)
|
||||
FragColor = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
else
|
||||
FragColor = vec4(0.0, 1.0, 1.0, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user