Changed the outline layer and hair shadow caster layer from LayerMask to RenderingLayerMask;
This commit is contained in:
17
Editor/Inspector/Helper/QuaternionToVector3Converter.cs
Normal file
17
Editor/Inspector/Helper/QuaternionToVector3Converter.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unity.Toonshader.Editor
|
||||
{
|
||||
public struct QuaternionToVector3Converter
|
||||
{
|
||||
public static Quaternion ConvertTo(Vector3 vector3)
|
||||
{
|
||||
return Quaternion.Euler(vector3);
|
||||
}
|
||||
|
||||
public static Vector3 ConvertBack(Quaternion quaternion)
|
||||
{
|
||||
return quaternion.eulerAngles;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user