Shader tools

Shader Languages http://en.wikipedia.org/wiki/Shading_language HLSL (High-level shader language ) developed by Microsoft. GLSL (OpenGL Shading Language) Cg (short for C for Graphics) is a high-level shading language developed by Nvidia OSL Open shading Language...

Typesafe array of interfaces in Unity

void Start () { ITest[] tests = ConvertToArray<ITest>(GetComponents(typeof(ITest))); Debug.Log(tests.Length, this); ITest test = GetComponent(typeof(ITest)) as ITest; Debug.Log(test != null ? "Found ITest" : "ITest Not Found", this); } public...

Quaternions Explained by Dan

A great overview of what quaternians are Its worth noting that alas the Unity documentation is not always correct. Unity uses standard quaternion multiplication order, which means that the quaternion product p*q rotates by q and then by p. So the my code for a mouse...