Mercurial > hg > Members > kono > Cerium
changeset 959:66cddab9fa76
success alpha blending
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 04 Aug 2010 18:02:04 +0900 |
parents | 58ff7b6fdbce |
children | 6945fb810ce3 |
files | Renderer/Engine/viewerGL.cc Renderer/Engine/viewerGL.h |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/viewerGL.cc Wed Aug 04 17:42:36 2010 +0900 +++ b/Renderer/Engine/viewerGL.cc Wed Aug 04 18:02:04 2010 +0900 @@ -141,7 +141,6 @@ glLightfv(GL_LIGHT0, GL_SPECULAR, OPENGL_PARAM::lightSpecular); glLightfv(GL_LIGHT0, GL_POSITION, OPENGL_PARAM::lightPosition); - glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS); glShadeModel(GL_SMOOTH); }
--- a/Renderer/Engine/viewerGL.h Wed Aug 04 17:42:36 2010 +0900 +++ b/Renderer/Engine/viewerGL.h Wed Aug 04 18:02:04 2010 +0900 @@ -28,7 +28,7 @@ static const GLfloat lightAmbient[] = {0.25f, 0.25f, 0.25f}; static const GLfloat lightDiffuse[] = {1.0f, 1.0f, 1.0f}; static const GLfloat lightSpecular[] = {1.0f, 1.0f, 1.0f}; - static const GLfloat lightPosition[] = {0.5f, 0.5f, 1.0f, 0.0f}; + static const GLfloat lightPosition[] = {0.5f, 0.5f, -1.0f, 0.0f}; } class ViewerGL : public Viewer {