[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53525] branches/ge_harmony/source/ gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp: Getting rid of some old checks so that the prepass targets should now be available for use when the rendering technique is not set to inferred lighting .

Daniel Stokes kupomail at gmail.com
Thu Jan 3 10:11:21 CET 2013


Revision: 53525
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53525
Author:   kupoman
Date:     2013-01-03 09:11:20 +0000 (Thu, 03 Jan 2013)
Log Message:
-----------
Getting rid of some old checks so that the prepass targets should now be available for use when the rendering technique is not set to inferred lighting.

Modified Paths:
--------------
    branches/ge_harmony/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp

Modified: branches/ge_harmony/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
===================================================================
--- branches/ge_harmony/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp	2013-01-03 09:09:34 UTC (rev 53524)
+++ branches/ge_harmony/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp	2013-01-03 09:11:20 UTC (rev 53525)
@@ -1337,7 +1337,6 @@
 
 void RAS_OpenGLRasterizer::BeginLightPass()
 {
-	if (m_technique != KX_TECH_INFERRED) return;
 	if (!m_light_shader) return;
 
 	int bind;
@@ -1387,7 +1386,6 @@
 
 void RAS_OpenGLRasterizer::RenderLight(RAS_LightObject *light)
 {
-	if (m_technique != KX_TECH_INFERRED) return;
 	if (!m_light_shader) return;
 
 	int bind;
@@ -1464,7 +1462,6 @@
 
 void RAS_OpenGLRasterizer::EndLightPass()
 {
-	if (m_technique != KX_TECH_INFERRED) return;
 	if (!m_light_shader) return;
 	
 	glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_fbo[0]);
@@ -1473,7 +1470,6 @@
 
 void RAS_OpenGLRasterizer::BeginPrePass()
 {
-	if (m_technique != KX_TECH_INFERRED) return;
 	if (!m_prepass_shader) return;
 
 	glPushAttrib(GL_VIEWPORT_BIT | GL_COLOR_BUFFER_BIT);




More information about the Bf-blender-cvs mailing list