Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

NPOT texture on iOS

$
0
0
I load NPOT textures from files and then assign them to materials.The code like: Texture2D tex = new Texture2D (2, 2, TextureFormat.PVRTC_RGB2, false); WWW picWWW = new WWW (pathStr); yield return picWWW ; if (picWWW == null) { picWWW LoadImageIntoTexture (tex); } renderer.material.mainTexture =tex; In Unity 3.5 or Unity 4.0 it works fine on iOS;The loaded texture is in repeat mode as expected。 But it‘s in clamp mode in Unity4.1.x and Unity4.3.x.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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