- Home /
Why doesn't a Sprite Renderer with a Mobile/Diffuse shader work on Android?
Why doesn't a Sprite Renderer with a Mobile/Diffuse shader work on Android?
A Sprite Renderer with the Mobile/Diffuse Shader works fine in the editor, but on my Nexus 7 it renders as a blank triangle, and on my Nexus 5 it doesn't render at all. I have tried several other Shaders including (not mobile) Diffuse, and the results are the same (except for Sprite/Default, which does work).
When I use the same Shaders on a Quad with a Mesh Renderer and the same input image, it works on my Android devices. Is there some trick to using different Shaders with a Sprite Renderer on Android?
Here is the Unity project: http://www.filedropper.com/androidshaders
Here is the output on my Nexus 7: (Sprite Renderer on top, Mesh Renderer on bottom) http://i.imgur.com/wSl4AxI.jpg
Here is the output on my Nexus 5: (Sprite Renderer on top, Mesh Renderer on bottom) http://i.imgur.com/TvVcbQ8.jpg
Answer by unimechanic · Oct 03, 2014 at 05:48 PM
Please submit bug report with sample project, as explained here:
Your answer
Follow this Question
Related Questions
Transparent shader for Android 1 Answer
How to add rim light for mobile in my shader? 0 Answers
Performance of 2D Apps on mobile: Optimizations? 0 Answers
My shader doesn't work if I use the same material for multiple objects with the same texture. 1 Answer
touch anywhere on screen to jump 2 Answers