adding support for non-uniform scale for decals
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user