I have a bicycle, and one texture that has two projects, top, and side of a shadow. Both textures are set into one quad with 4 vertices.
How would I blend between the two textures based on an angle of the directional light for example, so that I give an illusion of shadow?
An algorithm or approach pseudocode, would be nice
Edited by AhmedCoeia, 03 March 2014 - 08:41 AM.