Fix infinitely scaled decals with zero scale and depth

feature-multiSDF
Andrew Cassidy 4 years ago
parent 4d2623a1c6
commit 7980ef4791

@ -425,6 +425,8 @@ namespace ConformalDecals {
}
protected void UpdateScale() {
scale = Mathf.Max(0.01f, scale);
depth = Mathf.Max(0.01f, depth);
var aspectRatio = materialProperties.AspectRatio;
Vector2 size;

Loading…
Cancel
Save