Change the strength of a normal map in a Unity shader
I needed a function where i can change the “strength” of a normal. It seems to be not as easy as multiplying the normal vektor with a factor.
I needed a function where i can change the “strength” of a normal. It seems to be not as easy as multiplying the normal vektor with a factor.
I had the need for a simple script that i can feed with the vertices from a existing mesh and generete a convex collider-mesh out of it for Unity. So i found this realy nice C# implementation 1 2 from Matt Campbell of a fast algorithm called QuickHull 3 and could it implement it very easy into my Unity project.
The result of this was a nice little script component you can attach to any game object and it will generate a mesh collider from it and add it to the gameobject or any other target gameobject.