Added UTSPass; Chnaged the RTHanlde _HairShadowMap to not reallocate when screen resolution decreased;
17 lines
370 B
C#
17 lines
370 B
C#
using UnityEngine;
|
|
|
|
namespace Misaki.HdrpToon.Editor
|
|
{
|
|
public struct QuaternionToVector3Converter
|
|
{
|
|
public static Quaternion ConvertTo(Vector3 vector3)
|
|
{
|
|
return Quaternion.Euler(vector3);
|
|
}
|
|
|
|
public static Vector3 ConvertBack(Quaternion quaternion)
|
|
{
|
|
return quaternion.eulerAngles;
|
|
}
|
|
}
|
|
} |