mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 21:23:18 +02:00
Add Job::Config to HitEffect
This commit is contained in:
parent
772aedde91
commit
e8b8f4d535
3 changed files with 3 additions and 8 deletions
|
@ -171,9 +171,6 @@ void RenderDeferredTask::run(const SceneContextPointer& sceneContext, const Rend
|
|||
return;
|
||||
}
|
||||
|
||||
setDrawHitEffect(renderContext->getDrawHitEffect());
|
||||
// TODO: turn on/off AO through menu item
|
||||
|
||||
setAntialiasingStatus(renderContext->getFxaaStatus());
|
||||
// TODO: Allow runtime manipulation of culling ShouldRenderFunctor
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
using namespace render;
|
||||
|
||||
RenderContext::RenderContext(int drawStatus, bool drawHitEffect)
|
||||
RenderContext::RenderContext(int drawStatus)
|
||||
: _args{ nullptr },
|
||||
_drawStatus{ drawStatus }, _drawHitEffect{ drawHitEffect } {
|
||||
_drawStatus{ drawStatus } {
|
||||
}
|
||||
|
||||
void RenderContext::setOptions(bool occlusion, bool fxaa, bool showOwned, bool shadowMap) {
|
||||
|
|
|
@ -32,13 +32,12 @@ class JobConfig;
|
|||
|
||||
class RenderContext {
|
||||
public:
|
||||
RenderContext(int drawStatus, bool drawHitEffect);
|
||||
RenderContext(int drawStatus);
|
||||
RenderContext() {};
|
||||
|
||||
void setArgs(RenderArgs* args) { _args = args; }
|
||||
RenderArgs* getArgs() { return _args; }
|
||||
int getDrawStatus() { return _drawStatus; }
|
||||
bool getDrawHitEffect() { return _drawHitEffect; }
|
||||
bool getOcclusionStatus() { return _occlusionStatus; }
|
||||
bool getFxaaStatus() { return _fxaaStatus; }
|
||||
bool getShadowMapStatus() { return _shadowMapStatus; }
|
||||
|
@ -50,7 +49,6 @@ protected:
|
|||
|
||||
// Options
|
||||
int _drawStatus; // bitflag
|
||||
bool _drawHitEffect;
|
||||
bool _occlusionStatus { false };
|
||||
bool _fxaaStatus { false };
|
||||
bool _shadowMapStatus { false };
|
||||
|
|
Loading…
Reference in a new issue