From bc521497d3e5c6aada638ee0907d29a47a98b24e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Apr 2007 15:21:25 +0000 Subject: [PATCH] use slightly more light git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/opengl/cube/cube.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index 6a5bc37778..61f6494835 100644 --- a/samples/opengl/cube/cube.cpp +++ b/samples/opengl/cube/cube.cpp @@ -165,6 +165,10 @@ TestGLContext::TestGLContext(wxGLCanvas *canvas) glEnable(GL_LIGHT0); glEnable(GL_TEXTURE_2D); + // add slightly more light, the default lightning is rather dark + GLfloat ambient[] = { 0.5, 0.5, 0.5, 0.5 }; + glLightfv(GL_LIGHT0, GL_AMBIENT, ambient); + // set viewing projection glMatrixMode(GL_PROJECTION); glLoadIdentity(); -- 2.45.2