The question is all in the title, whenever you import textures into Unity and set the texture type to normal map, you will be given the option to create a normal map from grayscale. Anybody have any idea on how this works and how to write virtually the same functionality to be executed at runtime?
↧