https://docs.unity3d.com/ScriptReference/Material.SetTextureScale.html
Should work for setting the tiling on an arbitrary texture. I believe an additional method/control exists to set the texture offset. Not currently supported in TU, but seems like something I could add-in if it were needed.
Edit: Should add that I pushed an update to the dev branch last night that contains the shaders with the _Smoothness and _Metallic properties, if you wanted to play around with those at all. Simply replace your existing shader pack with this: https://github.com/shadowmage45/TexturesUnlimited/raw/dev/GameData/000_TexturesUnlimited/Shaders/sstushaders-universal.ssf , and the new shader properties should be accessible from the config files.[1.3.1] Textures Unlimited - PBR-Shader, Texture, and Model API - 11-11-17
---------------------------------------------------------------------------
Visit this link to stop these emails: http://zpr.io/nfAVj
Aucun commentaire:
Enregistrer un commentaire