Adding ray tracing toggle to behavior context so it can be used with scripting.
Signed-off-by: windbagjacket <nibor@ntlworld.com>
This commit is contained in:
@@ -376,7 +376,25 @@ namespace AZ::Render
|
||||
|
||||
bool AtomActorInstance::GetVisibility() const
|
||||
{
|
||||
return IsVisible();
|
||||
return IsVisible();
|
||||
}
|
||||
|
||||
void AtomActorInstance::SetRayTracingEnabled(bool enabled)
|
||||
{
|
||||
if (m_meshHandle->IsValid() && m_meshFeatureProcessor)
|
||||
{
|
||||
m_meshFeatureProcessor->SetRayTracingEnabled(*m_meshHandle, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
bool AtomActorInstance::GetRayTracingEnabled() const
|
||||
{
|
||||
if (m_meshHandle->IsValid() && m_meshFeatureProcessor)
|
||||
{
|
||||
return m_meshFeatureProcessor->GetRayTracingEnabled(*m_meshHandle);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
AZ::u32 AtomActorInstance::GetJointCount()
|
||||
|
||||
Reference in New Issue
Block a user