small bugfix (#6420)

Signed-off-by: rhhong <rhhong@amazon.com>
This commit is contained in:
Roman
2021-12-15 13:21:22 -08:00
committed by GitHub
parent f82b329291
commit 3a4eb3785a
3 changed files with 5 additions and 0 deletions
@@ -326,6 +326,9 @@ namespace EMStudio
Camera::Configuration cameraConfig;
cameraConfig.m_fovRadians = AZ::DegToRad(m_renderOptions->GetFOV());
cameraConfig.m_nearClipDistance = m_renderOptions->GetNearClipPlaneDistance();
cameraConfig.m_farClipDistance = m_renderOptions->GetFarClipPlaneDistance();
cameraConfig.m_frustumWidth = DefaultFrustumDimension;
cameraConfig.m_frustumHeight = DefaultFrustumDimension;
preset->ApplyLightingPreset(
iblFeatureProcessor, m_skyboxFeatureProcessor, exposureControlSettingInterface, m_directionalLightFeatureProcessor,
@@ -89,6 +89,7 @@ namespace EMStudio
AZStd::vector<AZ::Entity*> m_actorEntities;
const RenderOptions* m_renderOptions;
const float DefaultFrustumDimension = 128.0f;
AZStd::vector<AZ::Render::DirectionalLightFeatureProcessorInterface::LightHandle> m_lightHandles;
};
}
@@ -162,6 +162,7 @@ namespace EMStudio
const bool isChecked = settings.value("CameraFollowUp", false).toBool();
m_followCharacterAction->setChecked(isChecked);
AnimViewportRequestBus::Broadcast(&AnimViewportRequestBus::Events::SetFollowCharacter, isChecked);
}
void AnimViewportToolBar::SaveSettings()