adding support for non-uniform scale for decals

This commit is contained in:
greerdv
2021-04-29 11:46:08 +01:00
parent 409489e938
commit d35adce246
7 changed files with 44 additions and 8 deletions
@@ -269,11 +269,12 @@ namespace AZ
}
}
void DecalTextureArrayFeatureProcessor::SetDecalTransform(DecalHandle handle, const AZ::Transform& world)
void DecalTextureArrayFeatureProcessor::SetDecalTransform(DecalHandle handle, const AZ::Transform& world,
const AZ::Vector3& nonUniformScale)
{
if (handle.IsValid())
{
SetDecalHalfSize(handle, world.GetScale());
SetDecalHalfSize(handle, nonUniformScale * world.GetScale());
SetDecalPosition(handle, world.GetTranslation());
SetDecalOrientation(handle, world.GetRotation());