Skip to content

Commit 73b9ef3

Browse files
committed
Address review
1 parent 2e027db commit 73b9ef3

5 files changed

Lines changed: 2 additions & 10 deletions

File tree

apps/openmw/mwrender/renderingmanager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ namespace MWRender
274274
mPostProcessor->getTexture(PostProcessor::Tex_OpaqueDepth, 1));
275275
resourceSystem->getSceneManager()->setSupportsNormalsRT(mPostProcessor->getSupportsNormalsRT());
276276
resourceSystem->getSceneManager()->setWeatherParticleOcclusion(Settings::shaders().mWeatherParticleOcclusion);
277-
resourceSystem->getSceneManager()->setParticlePointLighting(Settings::shaders().mParticlePointLighting);
278277

279278
// water goes after terrain for correct waterculling order
280279
mWater = std::make_unique<Water>(

components/resource/scenemanager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,6 @@ namespace Resource
12061206
shaderVisitor->setAdjustCoverageForAlphaTest(mAdjustCoverageForAlphaTest);
12071207
shaderVisitor->setSupportsNormalsRT(mSupportsNormalsRT);
12081208
shaderVisitor->setWeatherParticleOcclusion(mWeatherParticleOcclusion);
1209-
shaderVisitor->setParticlePointLighting(mParticlePointLighting);
12101209
return shaderVisitor;
12111210
}
12121211
}

components/resource/scenemanager.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ namespace Resource
221221

222222
void setWeatherParticleOcclusion(bool value) { mWeatherParticleOcclusion = value; }
223223

224-
void setParticlePointLighting(bool value) { mParticlePointLighting = value; }
225-
226224
private:
227225
osg::ref_ptr<Shader::ShaderVisitor> createShaderVisitor(const std::string& shaderPrefix = "objects");
228226
osg::ref_ptr<osg::Node> loadErrorMarker();
@@ -257,7 +255,6 @@ namespace Resource
257255
bool mAdjustCoverageForAlphaTest = false;
258256
bool mSupportsNormalsRT = false;
259257
bool mWeatherParticleOcclusion = false;
260-
bool mParticlePointLighting = true;
261258
bool mUnRefImageDataAfterApply = false;
262259

263260
SceneManager(const SceneManager&) = delete;

components/sceneutil/clusteredlighting.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef OPENMW_COMPONENTS_SCENEUTIL_CLUSTERED_H
2-
#define OPENMW_COMPONENTS_SCENEUTIL_CLUSTERED_H
1+
#ifndef OPENMW_COMPONENTS_SCENEUTIL_CLUSTEREDLIGHTING_HPP
2+
#define OPENMW_COMPONENTS_SCENEUTIL_CLUSTEREDLIGHTING_HPP
33

44
#include <cstdint>
55
#include <osg/Vec4f>

components/shader/shadervisitor.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ namespace Shader
4747

4848
void setWeatherParticleOcclusion(bool value) { mWeatherParticleOcclusion = value; }
4949

50-
void setParticlePointLighting(bool value) { mParticlePointLighting = value; }
51-
5250
void apply(osg::Node& node) override;
5351

5452
void apply(osg::Drawable& drawable) override;
@@ -74,7 +72,6 @@ namespace Shader
7472

7573
bool mSupportsNormalsRT;
7674
bool mWeatherParticleOcclusion = false;
77-
bool mParticlePointLighting = true;
7875

7976
ShaderManager& mShaderManager;
8077
Resource::ImageManager& mImageManager;

0 commit comments

Comments
 (0)