Corrected lighting model for transparent surfaces. Reflections and specular are no longer masked by the alpha channel.

This commit is contained in:
2013-05-02 13:32:36 -07:00
parent 12842a0184
commit 30f39ea19f
9 changed files with 61 additions and 45 deletions

View File

@@ -193,7 +193,7 @@ void KRCollider::render(KRCamera *pCamera, std::vector<KRPointLight *> &point_li
// Enable alpha blending
GLDEBUG(glEnable(GL_BLEND));
GLDEBUG(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA));
GLDEBUG(glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA));
}
GL_POP_GROUP_MARKER;