Hi. I’m working on masking shader which download mask texture from www.
Here is my code snippet.
var request = UnityWebRequestTexture.GetTexture(url);
await request.SendWebRequest();
var maskTexture = DownloadHandlerTexture.GetContent(request);
mat.SetTexture("Texture2D_76EB197C", maskTexture );
and here is my shader graph.
It’s very weird because only imported texture is working.
There is one difference that format of texture from www is ARGB and from imported is RGB.
But I didn’t use alpha channel in my shader.
This is texture from www
and here is imported texture
Can anyone tell me why and how to fix this issue.
Thanks for in advance.