Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 292 vs 296 for /trunk/Source Code/Rendering/Lighting/ShadowMapping/SingleShadowMap.cpp

Diff revisions: vs.
  @@ -2,10 +2,11 @@
2 2
3 3 #include "Scenes/Headers/SceneState.h"
4 4 #include "Core/Headers/ParamHandler.h"
5 + #include "Managers/Headers/SceneManager.h"
6 + #include "Rendering/Headers/Renderer.h"
7 + #include "Rendering/Camera/Headers/Camera.h"
5 8 #include "Rendering/Lighting/Headers/Light.h"
6 9 #include "Hardware/Video/Headers/GFXDevice.h"
7 - #include "Rendering/Camera/Headers/Camera.h"
8 - #include "Managers/Headers/SceneManager.h"
9 10 #include "Geometry/Shapes/Headers/Predefined/Quad3D.h"
10 11
11 12 SingleShadowMap::SingleShadowMap(Light* light, Camera* shadowCamera) : ShadowMap(light, shadowCamera, SHADOW_TYPE_Single)
  @@ -14,7 +15,6 @@
14 15 ResourceDescriptor shadowPreviewShader("fbPreview.LinearDepth");
15 16 shadowPreviewShader.setThreadedLoading(false);
16 17 _previewDepthMapShader = CreateResource<ShaderProgram>(shadowPreviewShader);
17 - _previewDepthMapShader->UniformTexture("tex", 0);
18 18 SamplerDescriptor depthMapSampler;
19 19 depthMapSampler.setWrapMode(TEXTURE_CLAMP_TO_EDGE);
20 20 depthMapSampler.toggleMipMaps(false);
  @@ -75,7 +75,7 @@
75 75 }
76 76
77 77 void SingleShadowMap::previewShadowMaps(){
78 - _depthMap->Bind(0);
78 + _depthMap->Bind(ShaderProgram::TEXTURE_UNIT0);
79 79 _previewDepthMapShader->bind();
80 80 GFX_DEVICE.drawPoints(1, GFX_DEVICE.getDefaultStateBlock(true));
81 81 }