Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 193 vs 196 for /trunk/Source Code/Rendering/Lighting/ShadowMapping/CubeShadowMap.cpp

Diff revisions: vs.
  @@ -14,7 +14,7 @@
14 14 _resolutionFactor = ParamHandler::getInstance().getParam<U8>("rendering.shadowResolutionFactor");
15 15 CLAMP<F32>(_resolutionFactor,0.001f, 1.0f);
16 16 PRINT_FN(Locale::get("LIGHT_CREATE_SHADOW_FBO"), light->getId(), "Single Shadow Map");
17 - TextureDescriptor depthMapDescriptor(TEXTURE_2D,
17 + TextureDescriptor depthMapDescriptor(TEXTURE_CUBE_MAP,
18 18 DEPTH_COMPONENT,
19 19 DEPTH_COMPONENT,
20 20 UNSIGNED_INT); ///Default filters, LINEAR is OK for this
  @@ -46,7 +46,7 @@
46 46 ///Initialize the FBO's with a variable resolution
47 47 PRINT_FN(Locale::get("LIGHT_INIT_SHADOW_FBO"), _light->getId());
48 48 U16 shadowMapDimension = _maxResolution/_resolutionFactor;
49 - _depthMap->Create(shadowMapDimension,shadowMapDimension,RGBA16F);
49 + _depthMap->Create(shadowMapDimension,shadowMapDimension);
50 50 }
51 51 ShadowMap::resolution(resolution, renderState);
52 52 }