mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:58:59 +02:00
fix ao
This commit is contained in:
parent
e77cdfc0d2
commit
27f05db825
3 changed files with 5 additions and 7 deletions
|
@ -205,7 +205,7 @@ gpu::TexturePointer AmbientOcclusionFramebuffer::getNormalTexture() {
|
||||||
}
|
}
|
||||||
|
|
||||||
AmbientOcclusionEffectConfig::AmbientOcclusionEffectConfig() :
|
AmbientOcclusionEffectConfig::AmbientOcclusionEffectConfig() :
|
||||||
render::GPUJobConfig::Persistent(QStringList() << "Render" << "Engine" << "Ambient Occlusion", false),
|
render::GPUJobConfig::Persistent(QStringList() << "Render" << "Engine" << "Ambient Occlusion"),
|
||||||
perspectiveScale{ 1.0f },
|
perspectiveScale{ 1.0f },
|
||||||
edgeSharpness{ 1.0f },
|
edgeSharpness{ 1.0f },
|
||||||
blurRadius{ 4 },
|
blurRadius{ 4 },
|
||||||
|
|
|
@ -118,7 +118,7 @@ protected:
|
||||||
float enableSkinning{ 1.0f };
|
float enableSkinning{ 1.0f };
|
||||||
float enableBlendshape{ 1.0f };
|
float enableBlendshape{ 1.0f };
|
||||||
|
|
||||||
float enableAmbientOcclusion{ 0.0f };
|
float enableAmbientOcclusion{ 0.0f }; // false by default
|
||||||
float enableShadow{ 1.0f };
|
float enableShadow{ 1.0f };
|
||||||
float spare1{ 1.0f };
|
float spare1{ 1.0f };
|
||||||
float spare2{ 1.0f };
|
float spare2{ 1.0f };
|
||||||
|
@ -196,15 +196,13 @@ public:
|
||||||
bool enableSkinning{ true };
|
bool enableSkinning{ true };
|
||||||
bool enableBlendshape{ true };
|
bool enableBlendshape{ true };
|
||||||
|
|
||||||
bool enableAmbientOcclusion{ true };
|
bool enableAmbientOcclusion{ false }; // false by default
|
||||||
bool enableShadow{ true };
|
bool enableShadow{ true };
|
||||||
|
|
||||||
|
|
||||||
void setAmbientOcclusion(bool enable) { enableAmbientOcclusion = enable; emit dirty();}
|
void setAmbientOcclusion(bool enable) { enableAmbientOcclusion = enable; emit dirty();}
|
||||||
bool isAmbientOcclusionEnabled() const { return enableAmbientOcclusion; }
|
bool isAmbientOcclusionEnabled() const { return enableAmbientOcclusion; }
|
||||||
void setShadow(bool enable) {
|
void setShadow(bool enable) { enableShadow = enable; emit dirty(); }
|
||||||
enableShadow = enable; emit dirty();
|
|
||||||
}
|
|
||||||
bool isShadowEnabled() const { return enableShadow; }
|
bool isShadowEnabled() const { return enableShadow; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
|
@ -47,7 +47,7 @@ Rectangle {
|
||||||
"Lightmap:LightingModel:enableLightmap",
|
"Lightmap:LightingModel:enableLightmap",
|
||||||
"Background:LightingModel:enableBackground",
|
"Background:LightingModel:enableBackground",
|
||||||
"Haze:LightingModel:enableHaze",
|
"Haze:LightingModel:enableHaze",
|
||||||
"ssao:LightingModel:enableAmbientOcclusion",
|
"AO:LightingModel:enableAmbientOcclusion",
|
||||||
"Textures:LightingModel:enableMaterialTexturing"
|
"Textures:LightingModel:enableMaterialTexturing"
|
||||||
]
|
]
|
||||||
HifiControls.CheckBox {
|
HifiControls.CheckBox {
|
||||||
|
|
Loading…
Reference in a new issue