Added DiffuseGlobalIllumination level component
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <AzCore/RTTI/BehaviorContext.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponent.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
|
||||
DiffuseGlobalIlluminationComponent::DiffuseGlobalIlluminationComponent(const DiffuseGlobalIlluminationComponentConfig& config)
|
||||
: BaseClass(config)
|
||||
{
|
||||
}
|
||||
|
||||
void DiffuseGlobalIlluminationComponent::Reflect(AZ::ReflectContext* context)
|
||||
{
|
||||
BaseClass::Reflect(context);
|
||||
|
||||
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
|
||||
{
|
||||
serializeContext->Class<DiffuseGlobalIlluminationComponent, BaseClass>();
|
||||
}
|
||||
|
||||
if (auto behaviorContext = azrtti_cast<BehaviorContext*>(context))
|
||||
{
|
||||
behaviorContext->ConstantProperty("DiffuseGlobalIlluminationComponentTypeId", BehaviorConstant(Uuid(DiffuseGlobalIlluminationComponentTypeId)))
|
||||
->Attribute(AZ::Script::Attributes::Module, "render")
|
||||
->Attribute(AZ::Script::Attributes::Scope, AZ::Script::Attributes::ScopeFlags::Common);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Render
|
||||
} // namespace AZ
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/Component/Component.h>
|
||||
#include <AzFramework/Components/ComponentAdapter.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentConfig.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentConstants.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentController.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
class DiffuseGlobalIlluminationComponent final
|
||||
: public AzFramework::Components::ComponentAdapter<DiffuseGlobalIlluminationComponentController, DiffuseGlobalIlluminationComponentConfig>
|
||||
{
|
||||
public:
|
||||
using BaseClass = AzFramework::Components::ComponentAdapter<DiffuseGlobalIlluminationComponentController, DiffuseGlobalIlluminationComponentConfig>;
|
||||
AZ_COMPONENT(AZ::Render::DiffuseGlobalIlluminationComponent, DiffuseGlobalIlluminationComponentTypeId , BaseClass);
|
||||
|
||||
DiffuseGlobalIlluminationComponent() = default;
|
||||
DiffuseGlobalIlluminationComponent(const DiffuseGlobalIlluminationComponentConfig& config);
|
||||
|
||||
static void Reflect(AZ::ReflectContext* context);
|
||||
};
|
||||
} // namespace Render
|
||||
} // namespace AZ
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentConfig.h>
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
#include <AzCore/Serialization/EditContext.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
void DiffuseGlobalIlluminationComponentConfig::Reflect(ReflectContext* context)
|
||||
{
|
||||
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
|
||||
{
|
||||
serializeContext->Class<DiffuseGlobalIlluminationComponentConfig, ComponentConfig>()
|
||||
->Version(1)
|
||||
->Field("QualityLevel", &DiffuseGlobalIlluminationComponentConfig::m_qualityLevel)
|
||||
;
|
||||
}
|
||||
}
|
||||
} // namespace Render
|
||||
} // namespace AZ
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/Component/Component.h>
|
||||
#include <Atom/RPI.Reflect/System/AnyAsset.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
enum class DiffuseGlobalIlluminationQualityLevel : uint32_t
|
||||
{
|
||||
Low,
|
||||
Medium,
|
||||
High,
|
||||
|
||||
Count
|
||||
};
|
||||
|
||||
class DiffuseGlobalIlluminationComponentConfig final
|
||||
: public ComponentConfig
|
||||
{
|
||||
public:
|
||||
AZ_RTTI(DiffuseGlobalIlluminationComponentConfig, "{0D0835D6-6094-4EF8-BEAC-5FF8A4E4C119}", ComponentConfig);
|
||||
AZ_CLASS_ALLOCATOR(DiffuseGlobalIlluminationComponentConfig, SystemAllocator, 0);
|
||||
|
||||
static void Reflect(ReflectContext* context);
|
||||
|
||||
DiffuseGlobalIlluminationQualityLevel m_qualityLevel;
|
||||
};
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
static constexpr const char* const DiffuseGlobalIlluminationComponentTypeId = "{D51F8033-EF0D-4A13-BED3-5B193555B8D2}";
|
||||
static constexpr const char* const EditorDiffuseGlobalIlluminationComponentTypeId = "{169378DD-4052-4A60-BD63-90B02CFA69C1}";
|
||||
|
||||
} // namespace Render
|
||||
} // namespace AZ
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <AzCore/RTTI/BehaviorContext.h>
|
||||
|
||||
//#include <Atom/RPI.Public/Scene.h>
|
||||
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentController.h>
|
||||
//#include <Atom/Feature/ACES/AcesDisplayMapperFeatureProcessor.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
void DiffuseGlobalIlluminationComponentController::Reflect(ReflectContext* context)
|
||||
{
|
||||
DiffuseGlobalIlluminationComponentConfig::Reflect(context);
|
||||
|
||||
if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
|
||||
{
|
||||
serializeContext->Class<DiffuseGlobalIlluminationComponentController>()
|
||||
->Version(0)
|
||||
->Field("Configuration", &DiffuseGlobalIlluminationComponentController::m_configuration);
|
||||
}
|
||||
}
|
||||
|
||||
void DiffuseGlobalIlluminationComponentController::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
|
||||
{
|
||||
provided.push_back(AZ_CRC("DiffuseGlobalIlluminationService", 0x11b9cbe1));
|
||||
}
|
||||
|
||||
void DiffuseGlobalIlluminationComponentController::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
|
||||
{
|
||||
incompatible.push_back(AZ_CRC("DiffuseGlobalIlluminationService", 0x11b9cbe1));
|
||||
}
|
||||
|
||||
void DiffuseGlobalIlluminationComponentController::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
|
||||
{
|
||||
AZ_UNUSED(required);
|
||||
}
|
||||
|
||||
DiffuseGlobalIlluminationComponentController::DiffuseGlobalIlluminationComponentController(const DiffuseGlobalIlluminationComponentConfig& config)
|
||||
: m_configuration(config)
|
||||
{
|
||||
}
|
||||
|
||||
void DiffuseGlobalIlluminationComponentController::Activate(EntityId entityId)
|
||||
{
|
||||
m_entityId = entityId;
|
||||
}
|
||||
|
||||
void DiffuseGlobalIlluminationComponentController::Deactivate()
|
||||
{
|
||||
//m_postProcessInterface = nullptr;
|
||||
m_entityId.SetInvalid();
|
||||
}
|
||||
|
||||
void DiffuseGlobalIlluminationComponentController::SetConfiguration(const DiffuseGlobalIlluminationComponentConfig& config)
|
||||
{
|
||||
m_configuration = config;
|
||||
OnConfigChanged();
|
||||
}
|
||||
|
||||
const DiffuseGlobalIlluminationComponentConfig& DiffuseGlobalIlluminationComponentController::GetConfiguration() const
|
||||
{
|
||||
return m_configuration;
|
||||
}
|
||||
|
||||
void DiffuseGlobalIlluminationComponentController::OnConfigChanged()
|
||||
{
|
||||
// Register the configuration with the AcesDisplayMapperFeatureProcessor for this scene.
|
||||
//const AZ::RPI::Scene* scene = AZ::RPI::RPISystemInterface::Get()->GetDefaultScene().get();
|
||||
//DisplayMapperFeatureProcessorInterface* fp = scene->GetFeatureProcessor<DisplayMapperFeatureProcessorInterface>();
|
||||
//DisplayMapperConfigurationDescriptor desc;
|
||||
//desc.m_operationType = m_configuration.m_displayMapperOperation;
|
||||
//desc.m_ldrGradingLutEnabled = m_configuration.m_ldrColorGradingLutEnabled;
|
||||
//desc.m_ldrColorGradingLut = m_configuration.m_ldrColorGradingLut;
|
||||
//desc.m_acesParameterOverrides = m_configuration.m_acesParameterOverrides;
|
||||
//fp->RegisterDisplayMapperConfiguration(desc);
|
||||
}
|
||||
|
||||
} // namespace Render
|
||||
} // namespace AZ
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/Component/Component.h>
|
||||
#include <AzCore/Component/TransformBus.h>
|
||||
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentConfig.h>
|
||||
|
||||
//#include <Atom/Feature/PostProcess/PostProcessSettingsInterface.h>
|
||||
//#include <Atom/Feature/PostProcess/PostProcessFeatureProcessorInterface.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
class DiffuseGlobalIlluminationComponentController final
|
||||
{
|
||||
public:
|
||||
friend class EditorDiffuseGlobalIlluminationComponent;
|
||||
|
||||
AZ_TYPE_INFO(AZ::Render::DiffuseGlobalIlluminationComponentController, "{7DE7D2A0-2526-447C-A11F-C31EE1332C26}");
|
||||
static void Reflect(AZ::ReflectContext* context);
|
||||
static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
|
||||
static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
|
||||
static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
|
||||
|
||||
DiffuseGlobalIlluminationComponentController() = default;
|
||||
DiffuseGlobalIlluminationComponentController(const DiffuseGlobalIlluminationComponentConfig& config);
|
||||
|
||||
void Activate(EntityId entityId);
|
||||
void Deactivate();
|
||||
void SetConfiguration(const DiffuseGlobalIlluminationComponentConfig& config);
|
||||
const DiffuseGlobalIlluminationComponentConfig& GetConfiguration() const;
|
||||
|
||||
private:
|
||||
AZ_DISABLE_COPY(DiffuseGlobalIlluminationComponentController);
|
||||
|
||||
void OnConfigChanged();
|
||||
|
||||
DiffuseGlobalIlluminationComponentConfig m_configuration;
|
||||
EntityId m_entityId;
|
||||
};
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponent.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponent.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
+2
-2
@@ -12,8 +12,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponentController.h>
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponentConstants.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponentController.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponentConstants.h>
|
||||
#include <AzFramework/Components/ComponentAdapter.h>
|
||||
|
||||
namespace AZ
|
||||
+2
-2
@@ -10,8 +10,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponentController.h>
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponentConstants.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponentController.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponentConstants.h>
|
||||
|
||||
#include <Atom/RPI.Public/Model/Model.h>
|
||||
#include <Atom/RPI.Public/Image/StreamingImage.h>
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
#include <Atom/Feature/DiffuseProbeGrid/DiffuseProbeGridFeatureProcessorInterface.h>
|
||||
#include <Atom/RPI.Public/Model/Model.h>
|
||||
#include <LmbrCentral/Shape/BoxShapeComponentBus.h>
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponentConstants.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponentConstants.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
//#include "Atom/Feature/ACES/AcesDisplayMapperFeatureProcessor.h"
|
||||
|
||||
#include <AzCore/RTTI/BehaviorContext.h>
|
||||
#include <DiffuseGlobalIllumination/EditorDiffuseGlobalIlluminationComponent.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
void EditorDiffuseGlobalIlluminationComponent::Reflect(AZ::ReflectContext* context)
|
||||
{
|
||||
BaseClass::Reflect(context);
|
||||
|
||||
if (AZ::SerializeContext* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
|
||||
{
|
||||
serializeContext->Class<EditorDiffuseGlobalIlluminationComponent, BaseClass>()
|
||||
->Version(1);
|
||||
|
||||
if (AZ::EditContext* editContext = serializeContext->GetEditContext())
|
||||
{
|
||||
editContext->Class<EditorDiffuseGlobalIlluminationComponent>(
|
||||
"Diffuse Global Illumination", "Diffuse Global Illumination configuration")
|
||||
->ClassElement(Edit::ClassElements::EditorData, "")
|
||||
->Attribute(Edit::Attributes::Category, "Atom")
|
||||
->Attribute(AZ::Edit::Attributes::Icon, "Icons/Components/Component_Placeholder.svg")
|
||||
->Attribute(AZ::Edit::Attributes::ViewportIcon, "Icons/Components/Viewport/Component_Placeholder.png")
|
||||
->Attribute(Edit::Attributes::AppearsInAddComponentMenu, AZStd::vector<AZ::Crc32>({ AZ_CRC("Level", 0x9aeacc13), AZ_CRC("Game", 0x232b318c) }))
|
||||
->Attribute(Edit::Attributes::AutoExpand, true)
|
||||
->Attribute(Edit::Attributes::HelpPageURL, "https://")
|
||||
;
|
||||
|
||||
editContext->Class<DiffuseGlobalIlluminationComponentController>(
|
||||
"ToneMapperComponentControl", "")
|
||||
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
||||
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
||||
->DataElement(AZ::Edit::UIHandlers::Default, &DiffuseGlobalIlluminationComponentController::m_configuration, "Configuration", "")
|
||||
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly)
|
||||
;
|
||||
|
||||
editContext->Class<DiffuseGlobalIlluminationComponentConfig>("DiffuseGlobalIlluminationComponentConfig", "")
|
||||
->ClassElement(Edit::ClassElements::EditorData, "")
|
||||
->DataElement(Edit::UIHandlers::ComboBox, &DiffuseGlobalIlluminationComponentConfig::m_qualityLevel, "Quality Level", "Quality Level")
|
||||
->Attribute(Edit::Attributes::ChangeNotify, Edit::PropertyRefreshLevels::ValuesOnly)
|
||||
->EnumAttribute(DiffuseGlobalIlluminationQualityLevel::Low, "Low")
|
||||
->EnumAttribute(DiffuseGlobalIlluminationQualityLevel::Medium, "Medium")
|
||||
->EnumAttribute(DiffuseGlobalIlluminationQualityLevel::High, "High")
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
if (auto behaviorContext = azrtti_cast<BehaviorContext*>(context))
|
||||
{
|
||||
behaviorContext->ConstantProperty("EditorDiffuseGlobalIlluminationComponentTypeId", BehaviorConstant(Uuid(EditorDiffuseGlobalIlluminationComponentTypeId)))
|
||||
->Attribute(AZ::Script::Attributes::Module, "render")
|
||||
->Attribute(AZ::Script::Attributes::Scope, AZ::Script::Attributes::ScopeFlags::Automation);
|
||||
}
|
||||
}
|
||||
|
||||
EditorDiffuseGlobalIlluminationComponent::EditorDiffuseGlobalIlluminationComponent(const DiffuseGlobalIlluminationComponentConfig& config)
|
||||
: BaseClass(config)
|
||||
{
|
||||
}
|
||||
|
||||
u32 EditorDiffuseGlobalIlluminationComponent::OnConfigurationChanged()
|
||||
{
|
||||
m_controller.OnConfigChanged();
|
||||
return Edit::PropertyRefreshLevels::AttributesAndValues;
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponent.h>
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
namespace Render
|
||||
{
|
||||
class EditorDiffuseGlobalIlluminationComponent final
|
||||
: public AzToolsFramework::Components::EditorComponentAdapter<DiffuseGlobalIlluminationComponentController, DiffuseGlobalIlluminationComponent, DiffuseGlobalIlluminationComponentConfig>
|
||||
{
|
||||
public:
|
||||
|
||||
using BaseClass = AzToolsFramework::Components::EditorComponentAdapter<DiffuseGlobalIlluminationComponentController, DiffuseGlobalIlluminationComponent, DiffuseGlobalIlluminationComponentConfig>;
|
||||
AZ_EDITOR_COMPONENT(AZ::Render::EditorDiffuseGlobalIlluminationComponent, EditorDiffuseGlobalIlluminationComponentTypeId, BaseClass);
|
||||
|
||||
static void Reflect(AZ::ReflectContext* context);
|
||||
|
||||
EditorDiffuseGlobalIlluminationComponent() = default;
|
||||
EditorDiffuseGlobalIlluminationComponent(const DiffuseGlobalIlluminationComponentConfig& config);
|
||||
|
||||
//! EditorRenderComponentAdapter overrides...
|
||||
AZ::u32 OnConfigurationChanged() override;
|
||||
};
|
||||
|
||||
} // namespace Render
|
||||
} // namespace AZ
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <DiffuseProbeGrid/EditorDiffuseProbeGridComponent.h>
|
||||
#include <DiffuseGlobalIllumination/EditorDiffuseProbeGridComponent.h>
|
||||
#include <AzFramework/StringFunc/StringFunc.h>
|
||||
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
|
||||
#include <AzToolsFramework/Entity/EditorEntityInfoBus.h>
|
||||
+2
-2
@@ -16,8 +16,8 @@
|
||||
#include <AzFramework/Entity/EntityDebugDisplayBus.h>
|
||||
#include <AzToolsFramework/API/ComponentEntitySelectionBus.h>
|
||||
#include <AzToolsFramework/Entity/EditorEntityInfoBus.h>
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponent.h>
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponentConstants.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponent.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponentConstants.h>
|
||||
#include <Atom/Feature/Utils/EditorRenderComponentAdapter.h>
|
||||
|
||||
namespace AZ
|
||||
@@ -18,7 +18,8 @@
|
||||
#include <CoreLights/AreaLightComponent.h>
|
||||
#include <CoreLights/DirectionalLightComponent.h>
|
||||
#include <Decals/DecalComponent.h>
|
||||
#include <DiffuseProbeGrid/DiffuseProbeGridComponent.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseProbeGridComponent.h>
|
||||
#include <DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponent.h>
|
||||
#include <Grid/GridComponent.h>
|
||||
#include <ImageBasedLights/ImageBasedLightComponent.h>
|
||||
#include <Material/MaterialComponent.h>
|
||||
@@ -47,7 +48,8 @@
|
||||
#include <CoreLights/EditorAreaLightComponent.h>
|
||||
#include <CoreLights/EditorDirectionalLightComponent.h>
|
||||
#include <Decals/EditorDecalComponent.h>
|
||||
#include <DiffuseProbeGrid/EditorDiffuseProbeGridComponent.h>
|
||||
#include <DiffuseGlobalIllumination/EditorDiffuseProbeGridComponent.h>
|
||||
#include <DiffuseGlobalIllumination/EditorDiffuseGlobalIlluminationComponent.h>
|
||||
#include <Grid/EditorGridComponent.h>
|
||||
#include <ImageBasedLights/EditorImageBasedLightComponent.h>
|
||||
#include <Material/EditorMaterialComponent.h>
|
||||
@@ -111,6 +113,7 @@ namespace AZ
|
||||
EntityReferenceComponent::CreateDescriptor(),
|
||||
GradientWeightModifierComponent::CreateDescriptor(),
|
||||
DiffuseProbeGridComponent::CreateDescriptor(),
|
||||
DiffuseGlobalIlluminationComponent::CreateDescriptor(),
|
||||
DeferredFogComponent::CreateDescriptor(),
|
||||
SurfaceData::SurfaceDataMeshComponent::CreateDescriptor(),
|
||||
AttachmentComponent::CreateDescriptor(),
|
||||
@@ -142,6 +145,7 @@ namespace AZ
|
||||
EditorEntityReferenceComponent::CreateDescriptor(),
|
||||
EditorGradientWeightModifierComponent::CreateDescriptor(),
|
||||
EditorDiffuseProbeGridComponent::CreateDescriptor(),
|
||||
EditorDiffuseGlobalIlluminationComponent::CreateDescriptor(),
|
||||
EditorDeferredFogComponent::CreateDescriptor(),
|
||||
SurfaceData::EditorSurfaceDataMeshComponent::CreateDescriptor(),
|
||||
EditorAttachmentComponent::CreateDescriptor(),
|
||||
|
||||
+4
-2
@@ -23,8 +23,10 @@ set(FILES
|
||||
Source/CoreLights/EditorDirectionalLightComponent.cpp
|
||||
Source/Decals/EditorDecalComponent.h
|
||||
Source/Decals/EditorDecalComponent.cpp
|
||||
Source/DiffuseProbeGrid/EditorDiffuseProbeGridComponent.h
|
||||
Source/DiffuseProbeGrid/EditorDiffuseProbeGridComponent.cpp
|
||||
Source/DiffuseGlobalIllumination/EditorDiffuseProbeGridComponent.h
|
||||
Source/DiffuseGlobalIllumination/EditorDiffuseProbeGridComponent.cpp
|
||||
Source/DiffuseGlobalIllumination/EditorDiffuseGlobalIlluminationComponent.h
|
||||
Source/DiffuseGlobalIllumination/EditorDiffuseGlobalIlluminationComponent.cpp
|
||||
Source/Grid/EditorGridComponent.h
|
||||
Source/Grid/EditorGridComponent.cpp
|
||||
Source/ImageBasedLights/EditorImageBasedLightComponent.h
|
||||
|
||||
+10
-4
@@ -43,10 +43,16 @@ set(FILES
|
||||
Source/Decals/DecalComponent.cpp
|
||||
Source/Decals/DecalComponentController.h
|
||||
Source/Decals/DecalComponentController.cpp
|
||||
Source/DiffuseProbeGrid/DiffuseProbeGridComponent.h
|
||||
Source/DiffuseProbeGrid/DiffuseProbeGridComponent.cpp
|
||||
Source/DiffuseProbeGrid/DiffuseProbeGridComponentController.h
|
||||
Source/DiffuseProbeGrid/DiffuseProbeGridComponentController.cpp
|
||||
Source/DiffuseGlobalIllumination/DiffuseProbeGridComponent.h
|
||||
Source/DiffuseGlobalIllumination/DiffuseProbeGridComponent.cpp
|
||||
Source/DiffuseGlobalIllumination/DiffuseProbeGridComponentController.h
|
||||
Source/DiffuseGlobalIllumination/DiffuseProbeGridComponentController.cpp
|
||||
Source/DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponent.h
|
||||
Source/DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponent.cpp
|
||||
Source/DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentController.h
|
||||
Source/DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentController.cpp
|
||||
Source/DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentConfig.h
|
||||
Source/DiffuseGlobalIllumination/DiffuseGlobalIlluminationComponentConfig.cpp
|
||||
Source/Grid/GridComponent.h
|
||||
Source/Grid/GridComponent.cpp
|
||||
Source/Grid/GridComponentConfig.cpp
|
||||
|
||||
Reference in New Issue
Block a user