Hello,
I am new to Unity, and do not know how to write shaders, and require some direction or assistance.
I am building a mobile app and my player model is using standard shaders where I can invoke SetColor() to tint the albedo texture of the player model. The performance is fine, but I would like to use the mobile lightweight shaders instead for a performance bump.
I need to convert these standard shaders
- Mobile DIffuse
- Mobile Diffuse/Bumped
- Mobile Diffuse/Specular
I would like to modify them so that the albedo first diffuse texture has a color tint capability that is accessible via script using SetColor() and also in the inspector. If I go through this trouble to make a mobile shader with tintable diffuse texture, will it then basically be the same performance as a standard shader, making this effort all futile?
I am thinking there are other facets to the mobile shader code aside from the tint that is making it perform better for mobile, that is why I am pursuing this.
If anyone has already done this, I would appreciate some shader code that I can use.
If not, any direction as to where I can learn how to do this would be appreciated, but I don’t really want to learn how to master shader coding at this time, it seems like I could spend a year learning shader coding, due to the amount involved in that area.
My thanks in advance,
E