Enable fog in physical sky component to blend with deferred fog (#1320)

This commit is contained in:
hershey5045
2021-06-18 13:39:11 -07:00
committed by GitHub
parent 1ad6264d0d
commit c127a044d4
17 changed files with 335 additions and 13 deletions
@@ -34,7 +34,9 @@ namespace AZ
if (auto behaviorContext = azrtti_cast<BehaviorContext*>(context))
{
behaviorContext->Class<PhysicalSkyComponent>()->RequestBus("PhysicalSkyRequestBus");
behaviorContext->Class<PhysicalSkyComponent>()
->RequestBus("PhysicalSkyRequestBus")
->RequestBus("SkyBoxFogRequestBus");
behaviorContext->ConstantProperty("PhysicalSkyComponentTypeId", BehaviorConstant(Uuid(PhysicalSkyComponentTypeId)))
->Attribute(AZ::Script::Attributes::Module, "render")