Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 264 vs 267 for /trunk/Source Code/Managers/LightManager.cpp

Diff revisions: vs.
  @@ -209,29 +209,6 @@
209 209 sm->Bind(offset);
210 210 }
211 211
212 - void LightManager::unbindDepthMaps(Light* light, U8 offset, bool overrideDominant){
213 - if(!_shadowMapsEnabled)
214 - return;
215 -
216 - Light* lightLocal = light;
217 -
218 - if(_dominantLight && !overrideDominant)
219 - lightLocal = _dominantLight;
220 -
221 - if(!lightLocal->castsShadows())
222 - return;
223 -
224 - if(lightLocal->getLightType() == LIGHT_TYPE_DIRECTIONAL)
225 - offset = Config::MAX_TEXTURE_STORAGE + Config::MAX_SHADOW_CASTING_LIGHTS_PER_NODE;
226 -
227 - if(lightLocal->getLightType() == LIGHT_TYPE_POINT)
228 - offset = Config::MAX_TEXTURE_STORAGE + Config::MAX_SHADOW_CASTING_LIGHTS_PER_NODE + 1;
229 -
230 - ShadowMap* sm = lightLocal->getShadowMapInfo()->getShadowMap();
231 - if (sm)
232 - sm->Unbind(offset);
233 - }
234 -
235 212 bool LightManager::shadowMappingEnabled() const {
236 213 if(!_shadowMapsEnabled)
237 214 return false;