Hi
I'm current making a shader where i used a grayscale Image texture to offset vertex positions. It's working fine inside unity editor but when i build the game and port it to my android device the object doesn't even show up.
If i unplug the image texture and use generated noise then it works on android. Am i missing something here?
FardinHaque wrote:Hi
I'm current making a shader where i used a grayscale Image texture to offset vertex positions. It's working fine inside unity editor but when i build the game and port it to my android device the object doesn't even show up.
If i unplug the image texture and use generated noise then it works on android. Am i missing something here?
Hello,
Thank you for getting in touch, we would be happy to help.
That's an odd issue, can you share a sample shader?
What's your currently targeted OpenGL ES version and device?
So, i think my device "symphony h300" is OpenGl ES 2.0 and for some reason this shader isn't supported on it. I don't know what i'm missing here as i'm pretty new to shaders. Please let me know what i'm doing wrong here
Hello, your issue might be related to limitations imposed by the chosen Shader Model, could you try compiling your shader using Shader Model 3.0 to see if the issue is still present in the build?
OpenGL ES 2.0 should support up to Shader Model 3.0, according to the Shader Compilation Target Levels reference in the Unity Manual.
Changing to Shader Model 3.0 doesn't seem to fix it. What's bothering me is that, firstly the device i'm using to test this shader is not that bad. Secondly if i just simply use the Noise Generator instead of My noise texture, it works.
That's indeed an odd issue, would it be possible for you to send us a sample of the shader with the texture so that we may debug it on our side? Thanks!
Thank you for taking the time to provide us with a sample, I'll pass it on to the developer and he will investigate it as soon as possible.
Meanwhile, could you also test a simple shader with only a color for the albedo and a simple offset, without using the shader function or any complex operations, on the device that's giving you the issue? Thanks!
Hello, for some reason the last link you posted is not working, could you re-upload your image, or preferably the shader itself? You can do it directly on your reply by using the "Upload Attachment", thanks!