We need a Shader allowing to specify one color per orientation of an object's faces :
- leftColor (faces that are turned towards west)
- rightColor (faces that are turned towards east)
- frontColor (faces that are turned towards south)
- backColor (faces that are turned towards north)
- upColor (faces that are turned towards the sky)
- downColor (faces that are turned towards the ground)
The attached Shader allows that but in an incomplete way : the main problem is that in this Shader the camera seems to be taken into account in the rendering calculation. We want this to be removed so that the Shader behaves independently from the camera. Only the object's position in the 3D world should be taken in consideration.
Also please take notice that this Shader will be used in Unity mobile apps.
Hi i have worked with shader programming but its not a guarantee that we always get success,i will try my best to make the shader work as expected thanks