Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switched non-shader drawing colour from white to red

  • Loading branch information...
commit b302e4d10a4e339a424569543eccc9aaf03b1f23 1 parent fd39ad8
@alihelmy authored
View
5 LessonOne/com/onehandstand/lwjgltutorial/lessonone/ShaderTriangle.java
@@ -57,9 +57,10 @@ public void draw() {
// normal rendering code
glLoadIdentity();
- //white, which will show if our fragment shader doesn't work
- glColor3f(1.0f, 1.0f, 1.0f);
+ //red, which will show if our fragment shader doesn't work
+ glColor3f(1.0f, 0.0f, 0.0f);
+ //drawn at 0.0 in z axis, so wont show if vertex shader doesn't work
glBegin(GL_TRIANGLES);
glVertex2f(0.0f, 0.8f);
glVertex2f(-0.8f, -0.8f);
Please sign in to comment.
Something went wrong with that request. Please try again.