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