Quantcast
Channel: Questions in topic: "webrequest"
Viewing all articles
Browse latest Browse all 387

Texture from web is not working on shader?

$
0
0
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. ![alt text][1] It's very weird because only imported texture is working. ![alt text][2] 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 ![alt text][3] and here is imported texture ![alt text][4] Can anyone tell me why and how to fix this issue. Thanks for in advance. [1]: https://i.imgur.com/c7Y0rdJ.png [2]: https://i.imgur.com/h7zoDcZ.png [3]: https://i.imgur.com/2lcn3M2.png [4]: https://i.imgur.com/xqsZCHa.png

Viewing all articles
Browse latest Browse all 387

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>