Open 3D Engine GradientSignal Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
GradientSignal::GradientSampler Class Referencefinal

Public Member Functions

 AZ_CLASS_ALLOCATOR (GradientSampler, AZ::SystemAllocator)
 
 AZ_RTTI (GradientSampler, "{3768D3A6-BF70-4ABC-B4EC-73C75A886916}")
 
float GetValue (const GradientSampleParams &sampleParams) const
 
void GetValues (AZStd::span< const AZ::Vector3 > positions, AZStd::span< float > outValues) const
 
bool IsEntityInHierarchy (const AZ::EntityId &entityId) const
 
AZ::Aabb TransformDirtyRegion (const AZ::Aabb &dirtyRegion) const
 Given a dirty region for a gradient, transform the dirty region in world space based on the gradient transform settings.
 
bool ValidateGradientEntityId ()
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

AZ::EntityId m_gradientId
 
AZ::EntityId m_ownerEntityId
 Entity that owns the gradientSampler itself, used by the gradient previewer.
 
float m_opacity = 1.0f
 
bool m_invertInput = false
 
bool m_enableTransform = false
 
AZ::Vector3 m_translate = AZ::Vector3::CreateZero()
 
AZ::Vector3 m_scale = AZ::Vector3::CreateOne()
 
AZ::Vector3 m_rotate = AZ::Vector3::CreateZero()
 
bool m_enableLevels = false
 
float m_inputMid = 1.0f
 
float m_inputMin = 0.0f
 
float m_inputMax = 1.0f
 
float m_outputMin = 0.0f
 
float m_outputMax = 1.0f
 

The documentation for this class was generated from the following file: