**Distortion** |
-The per-direction amount that HDRP distorts light that passes through the material. |
+The screen space, per-direction amount that HDRP distorts light that passes through the material. For example, if you set this to (1, 0), the output is offset by 1 pixel to the right. |
• **Distortion** enabled |
Vector2(0, 0) |
diff --git a/com.unity.render-pipelines.high-definition/Editor/Material/Decal/DecalProjectorEditor.cs b/com.unity.render-pipelines.high-definition/Editor/Material/Decal/DecalProjectorEditor.cs
index 97396e1feab..b8fb3eb13fb 100644
--- a/com.unity.render-pipelines.high-definition/Editor/Material/Decal/DecalProjectorEditor.cs
+++ b/com.unity.render-pipelines.high-definition/Editor/Material/Decal/DecalProjectorEditor.cs
@@ -230,6 +230,8 @@ private void OnEnable()
};
m_FadeFactor = serializedObject.FindProperty("m_FadeFactor");
m_DecalLayerMask = serializedObject.FindProperty("m_DecalLayerMask");
+
+ ReinitSavedRatioSizePivotPosition();
}
private void OnDisable()
@@ -352,6 +354,8 @@ void DrawPivotHandles(DecalProjector decalProjector)
decalProjector.pivot += Quaternion.Inverse(decalProjector.transform.rotation) * (decalProjector.transform.position - newPosition);
decalProjector.transform.position = newPosition;
+
+ ReinitSavedRatioSizePivotPosition();
}
}
}
@@ -468,11 +472,66 @@ static Func