This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class GenerateVectorData : MonoBehaviour | |
{ | |
private SkinnedMeshRenderer m_mesh; | |
private Mesh skinnedMeshCache; | |
private Vector3[] vertexFrameCache1; | |
private Vector3[] vertexFrameCache2; | |
private Vector3[] vertexFrameCache3; | |
private ComputeBuffer vertexBuffer1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline float inverselerp(float min, float max, float x) | |
{ | |
return (x - min) / (max - min); | |
} | |
float hash(float n) | |
{ | |
return frac(sin(n)*43758.5453); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Advanced C# messenger by Ilya Suzdalnitski. V1.0 | |
* | |
* Based on Rod Hyde's "CSharpMessenger" and Magnus Wolffelt's "CSharpMessenger Extended". | |
* (Modified by Dylan Bennett to add Unity 2017+ Scene Management support and switch to enums | |
* instead of strings for names of events.) | |
* | |
* Features: | |
* Prevents a MissingReferenceException because of a reference to a destroyed message handler. | |
* Option to log all messages |