mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 12:14:00 +02:00
Fix type, gaussion->gaussian
This commit is contained in:
parent
5009e8702e
commit
4354eae129
1 changed files with 4 additions and 4 deletions
|
@ -104,7 +104,7 @@ AmbientOcclusionEffect::AmbientOcclusionEffect() {
|
|||
void AmbientOcclusionEffect::configure(const Config& config) {
|
||||
DependencyManager::get<DeferredLightingEffect>()->setAmbientOcclusionEnabled(config.enabled);
|
||||
|
||||
bool shouldUpdateGaussion = false;
|
||||
bool shouldUpdateGaussian = false;
|
||||
|
||||
const double RADIUS_POWER = 6.0;
|
||||
const auto& radius = config.radius;
|
||||
|
@ -133,7 +133,7 @@ void AmbientOcclusionEffect::configure(const Config& config) {
|
|||
if (config.blurDeviation != getBlurDeviation()) {
|
||||
auto& current = _parametersBuffer.edit<Parameters>().blurInfo;
|
||||
current.z = config.blurDeviation;
|
||||
shouldUpdateGaussion = true;
|
||||
shouldUpdateGaussian = true;
|
||||
}
|
||||
|
||||
if (config.numSpiralTurns != getNumSpiralTurns()) {
|
||||
|
@ -159,7 +159,7 @@ void AmbientOcclusionEffect::configure(const Config& config) {
|
|||
if (config.blurRadius != getBlurRadius()) {
|
||||
auto& current = _parametersBuffer.edit<Parameters>().blurInfo;
|
||||
current.y = (float)config.blurRadius;
|
||||
shouldUpdateGaussion = true;
|
||||
shouldUpdateGaussian = true;
|
||||
}
|
||||
|
||||
if (config.ditheringEnabled != isDitheringEnabled()) {
|
||||
|
@ -172,7 +172,7 @@ void AmbientOcclusionEffect::configure(const Config& config) {
|
|||
current.w = (float)config.borderingEnabled;
|
||||
}
|
||||
|
||||
if (shouldUpdateGaussion) {
|
||||
if (shouldUpdateGaussian) {
|
||||
updateGaussianDistribution();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue