The EBus for requests to modify sky atmosphere components.
More...
#include <SkyAtmosphereBus.h>
Inherits AZ::ComponentBus.
|
|
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
| | Overrides the default AZ::EBusTraits handler policy to allow one listener only.
|
| |
The EBus for requests to modify sky atmosphere components.
◆ GetAerialDepthFactor()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetAerialDepthFactor |
( |
| ) |
|
|
pure virtual |
- Returns
- the factor applied to the depth of all pixels that obstruct the sky,
◆ GetAerialPerspectiveEnabled()
| virtual bool SkyAtmosphere::SkyAtmosphereRequests::GetAerialPerspectiveEnabled |
( |
| ) |
|
|
pure virtual |
- Returns
- whether aerial perspective is enabled or not
◆ GetAtmosphereHeight()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetAtmosphereHeight |
( |
| ) |
|
|
pure virtual |
- Returns
- the atmosphere height in kilometers
◆ GetEnabled()
| virtual bool SkyAtmosphere::SkyAtmosphereRequests::GetEnabled |
( |
| ) |
|
|
pure virtual |
- Returns
- true if the current atmosphere is enabled
◆ GetFastAerialPerspectiveEnabled()
| virtual bool SkyAtmosphere::SkyAtmosphereRequests::GetFastAerialPerspectiveEnabled |
( |
| ) |
|
|
pure virtual |
- Returns
- whether fast aerial perspective is enabled
◆ GetFastSkyEnabled()
| virtual bool SkyAtmosphere::SkyAtmosphereRequests::GetFastSkyEnabled |
( |
| ) |
|
|
pure virtual |
- Returns
- whether fast sky is enabled
◆ GetGroundAlbedo()
| virtual AZ::Vector3 SkyAtmosphere::SkyAtmosphereRequests::GetGroundAlbedo |
( |
| ) |
|
|
pure virtual |
◆ GetLuminanceFactor()
| virtual AZ::Vector3 SkyAtmosphere::SkyAtmosphereRequests::GetLuminanceFactor |
( |
| ) |
|
|
pure virtual |
- Returns
- the luminance factor of the atmosphere
◆ GetMaxSamples()
| virtual uint8_t SkyAtmosphere::SkyAtmosphereRequests::GetMaxSamples |
( |
| ) |
|
|
pure virtual |
- Returns
- the maximum number of samples to use for each ray cast
◆ GetMieAbsorption()
| virtual AZ::Vector3 SkyAtmosphere::SkyAtmosphereRequests::GetMieAbsorption |
( |
| ) |
|
|
pure virtual |
- Returns
- the mie absorption amount
◆ GetMieExpDistribution()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetMieExpDistribution |
( |
| ) |
|
|
pure virtual |
- Returns
- the mie distribution amount
◆ GetMieScattering()
| virtual AZ::Vector3 SkyAtmosphere::SkyAtmosphereRequests::GetMieScattering |
( |
| ) |
|
|
pure virtual |
- Returns
- the mie scattering color
◆ GetMinSamples()
| virtual uint8_t SkyAtmosphere::SkyAtmosphereRequests::GetMinSamples |
( |
| ) |
|
|
pure virtual |
- Returns
- the minimum number of samples to use for each ray cast
◆ GetNearClip()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetNearClip |
( |
| ) |
|
|
pure virtual |
- Returns
- the near clip distance at which aerial perspective starts drawing
◆ GetNearFadeDistance()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetNearFadeDistance |
( |
| ) |
|
|
pure virtual |
- Returns
- the distance over which to fade in aerial perspective starting from the near clip distance
◆ GetPlanetOriginMode()
| virtual SkyAtmosphereComponentConfig::AtmosphereOrigin SkyAtmosphere::SkyAtmosphereRequests::GetPlanetOriginMode |
( |
| ) |
|
|
pure virtual |
- Returns
- the planet origin mode
◆ GetPlanetRadius()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetPlanetRadius |
( |
| ) |
|
|
pure virtual |
- Returns
- the planet radius in kilometers
◆ GetRayleighExpDistribution()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetRayleighExpDistribution |
( |
| ) |
|
|
pure virtual |
- Returns
- the rayleigh exp distribution amount
◆ GetRayleighScattering()
| virtual AZ::Vector3 SkyAtmosphere::SkyAtmosphereRequests::GetRayleighScattering |
( |
| ) |
|
|
pure virtual |
- Returns
- the rayleigh scattering color
◆ GetShadowsEnabled()
| virtual bool SkyAtmosphere::SkyAtmosphereRequests::GetShadowsEnabled |
( |
| ) |
|
|
pure virtual |
- Returns
- whether shadows affect the atmosphere
◆ GetSunColor()
| virtual AZ::Color SkyAtmosphere::SkyAtmosphereRequests::GetSunColor |
( |
| ) |
|
|
pure virtual |
◆ GetSunDirection()
| virtual AZ::Vector3 SkyAtmosphere::SkyAtmosphereRequests::GetSunDirection |
( |
| ) |
|
|
pure virtual |
◆ GetSunEnabled()
| virtual bool SkyAtmosphere::SkyAtmosphereRequests::GetSunEnabled |
( |
| ) |
|
|
pure virtual |
- Returns
- whether drawing the sun is enabled
◆ GetSunEntityId()
| virtual AZ::EntityId SkyAtmosphere::SkyAtmosphereRequests::GetSunEntityId |
( |
| ) |
|
|
pure virtual |
- Returns
- the sun entity to use for the orientation of the sun
◆ GetSunFalloffFactor()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetSunFalloffFactor |
( |
| ) |
|
|
pure virtual |
- Returns
- the sun falloff factor
◆ GetSunLimbColor()
| virtual AZ::Color SkyAtmosphere::SkyAtmosphereRequests::GetSunLimbColor |
( |
| ) |
|
|
pure virtual |
- Returns
- the sun limb (outer edge) color
◆ GetSunLuminanceFactor()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetSunLuminanceFactor |
( |
| ) |
|
|
pure virtual |
- Returns
- the sun luminance factor
◆ GetSunRadiusFactor()
| virtual float SkyAtmosphere::SkyAtmosphereRequests::GetSunRadiusFactor |
( |
| ) |
|
|
pure virtual |
- Returns
- the sun radius factor
◆ SetAerialDepthFactor()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetAerialDepthFactor |
( |
float |
aerialDepthFactor | ) |
|
|
pure virtual |
Set the factor to apply to the depth of all pixels that obstruct the sky, causing objects to appear further away in the atmosphere
- Parameters
-
| aerialDepthFactor | The factor to multiply to all obstructed pixels depth
|
◆ SetAerialPerspectiveEnabled()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetAerialPerspectiveEnabled |
( |
bool |
enabled | ) |
|
|
pure virtual |
Enable or disable drawing aerial perspective on top of the scene. This can be used to speed up indoor scenes
- Parameters
-
| enabled | Whether to enable or aerial perspective
|
◆ SetAtmosphereHeight()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetAtmosphereHeight |
( |
float |
atmosphereHeightKm | ) |
|
|
pure virtual |
Set the atmosphere height in kilometers
- Parameters
-
| atmosphereHeightKm | height in km
|
◆ SetEnabled()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetEnabled |
( |
bool |
enabled | ) |
|
|
pure virtual |
Enable/disable atmosphere without having to deactivate the entity
- Parameters
-
| enabled | Set whether the atmosphere is enabled or not
|
◆ SetFastAerialPerspectiveEnabled()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetFastAerialPerspectiveEnabled |
( |
bool |
enabled | ) |
|
|
pure virtual |
Enable using a look up table for all sky pixels that are obstructed
- Parameters
-
| enabled | Whether to enable or disable fast aerial perspective
|
◆ SetFastSkyEnabled()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetFastSkyEnabled |
( |
bool |
enabled | ) |
|
|
pure virtual |
Enable using a look up table for all sky pixels that are not obstructed
- Parameters
-
| enabled | Whether to enable or disable fast sky
|
◆ SetGroundAlbedo()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetGroundAlbedo |
( |
const AZ::Vector3 & |
groundAlbedo | ) |
|
|
pure virtual |
Set the ground albedo
- Parameters
-
| groundAlbedo | The ground albedo color
|
◆ SetLuminanceFactor()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetLuminanceFactor |
( |
const AZ::Vector3 & |
luminanceFactor | ) |
|
|
pure virtual |
Set the luminance factor of the atmosphere
- Parameters
-
| luminanceFactor | The luminance factor
|
◆ SetMaxSamples()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetMaxSamples |
( |
uint8_t |
maxSamples | ) |
|
|
pure virtual |
Set the maximum number of samples to use for each ray cast from the camera into the atmosphere
- Parameters
-
| maxSamples | The maximum number of samples
|
◆ SetMieAbsorption()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetMieAbsorption |
( |
const AZ::Vector3 & |
mieAbsorption | ) |
|
|
pure virtual |
Set the mie absorption amount
- Parameters
-
| mieAbsorption | The mie absorption amount
|
◆ SetMieExpDistribution()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetMieExpDistribution |
( |
float |
mieExpDistribution | ) |
|
|
pure virtual |
Set the mie distribution amount
- Parameters
-
| mieExpDistribution | The mie distribution amount
|
◆ SetMieScattering()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetMieScattering |
( |
const AZ::Vector3 & |
mieScattering | ) |
|
|
pure virtual |
Set the mie scattering color
- Parameters
-
| mieScattering | The mie scattering color
|
◆ SetMinSamples()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetMinSamples |
( |
uint8_t |
minSamples | ) |
|
|
pure virtual |
Set the minimum number of samples to use for each ray cast from the camera into the atmosphere
- Parameters
-
| minSamples | The minimum number of samples
|
◆ SetNearClip()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetNearClip |
( |
float |
nearClip | ) |
|
|
pure virtual |
Set the near clip distance at which aerial perspective starts drawing This value is useful when you are inside a building looking out and don't want to enable shadows, instead you can set the near clip so aerial perspective isn't applied until pixels are outside whatever building the camera is in
- Parameters
-
| nearClip | The distance in meters at which to start applying aerial perspective
|
◆ SetNearFadeDistance()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetNearFadeDistance |
( |
float |
nearFadeDistance | ) |
|
|
pure virtual |
Set the distance over which to fade in aerial perspective starting from the near clip distance If this value is set to 0, there may be a distinct visible line
- Parameters
-
| nearFadeDistance | The distance in meters at which to fade into aerial perspective
|
◆ SetPlanetOriginMode()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetPlanetOriginMode |
( |
SkyAtmosphereComponentConfig::AtmosphereOrigin |
mode | ) |
|
|
pure virtual |
Set the planet origin mode
- Parameters
-
| mode | Set the origin mode to use
|
◆ SetPlanetRadius()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetPlanetRadius |
( |
float |
planetRadiusKm | ) |
|
|
pure virtual |
Set the planet radius in kilometers
- Parameters
-
| planetRadiusKm | radius in km
|
◆ SetRayleighExpDistribution()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetRayleighExpDistribution |
( |
float |
rayleighExpDistribution | ) |
|
|
pure virtual |
Set the rayleigh exp distribution amount
- Parameters
-
| rayleighExpDistribution | The rayleight exp distribution
|
◆ SetRayleighScattering()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetRayleighScattering |
( |
const AZ::Vector3 & |
rayleighScattering | ) |
|
|
pure virtual |
Set the rayleigh scattering color
- Parameters
-
| rayleighScattering | The rayleigh scattering color
|
◆ SetShadowsEnabled()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetShadowsEnabled |
( |
bool |
enabled | ) |
|
|
pure virtual |
Set whether shadows affect the atmosphere or not Shadows have no effect when fast aerial perspective and fast sky are enabled
- Parameters
-
| enabled | True to allow shadows to affect the atmosphere
|
◆ SetSunColor()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetSunColor |
( |
const AZ::Color |
sunColor | ) |
|
|
pure virtual |
Set the sun color
- Parameters
-
◆ SetSunDirection()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetSunDirection |
( |
const AZ::Vector3 & |
sunDirection | ) |
|
|
pure virtual |
Set the sun direction, has not effect if the sun entity has been set
- Parameters
-
| sunDirection | The direction for the sun to point at
|
◆ SetSunEnabled()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetSunEnabled |
( |
bool |
enabled | ) |
|
|
pure virtual |
Enable or disable drawing on the sun
- Parameters
-
| enabled | Enable drawing the sun or not
|
◆ SetSunEntityId()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetSunEntityId |
( |
AZ::EntityId |
entityId | ) |
|
|
pure virtual |
Set the sun entity to use for the orientation of the sun
- Parameters
-
| entityId | The Entity Id of the entity to use |
◆ SetSunFalloffFactor()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetSunFalloffFactor |
( |
float |
factor | ) |
|
|
pure virtual |
Set the sun falloff factor, controls how the sun disk fades at the edges
- Parameters
-
| factor | The falloff factor for the edge of the sun
|
◆ SetSunLimbColor()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetSunLimbColor |
( |
const AZ::Color |
sunLimbColor | ) |
|
|
pure virtual |
Set the sun limb (outer edge) color
- Parameters
-
| sunLimbColor | The sun limb color |
◆ SetSunLuminanceFactor()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetSunLuminanceFactor |
( |
float |
factor | ) |
|
|
pure virtual |
Set the sun luminance factor
- Parameters
-
| factor | The luminance color |
◆ SetSunRadiusFactor()
| virtual void SkyAtmosphere::SkyAtmosphereRequests::SetSunRadiusFactor |
( |
float |
factor | ) |
|
|
pure virtual |
Set the sun radius factor, controls how large the sun disk is
- Parameters
-
| factor | The radius factor for the edge of the sun
|
The documentation for this class was generated from the following file:
- Gems/SkyAtmosphere/Code/Include/SkyAtmosphere/SkyAtmosphereBus.h