Skip to content

Instantly share code, notes, and snippets.

@iUltimateLP
Last active November 19, 2015 16:37
Show Gist options
  • Save iUltimateLP/0f5429100bd67de09ac4 to your computer and use it in GitHub Desktop.
Save iUltimateLP/0f5429100bd67de09ac4 to your computer and use it in GitHub Desktop.
aTexture = new Texture2D(1,1);
aTexture.LoadImage(File.ReadAllBytes(Util.GetModWorkingDir(false, 0) + "/Resources/original/grass.png"));
aTexture.anisoLevel = 8;
bTexture = new Texture2D(1, 1);
bTexture.LoadImage(File.ReadAllBytes(Util.GetModWorkingDir(false, 0) + "/Resources/snow1.png"));
bTexture.anisoLevel = 8;
terMan = FindObjectOfType<TerrainManager>();
Graphics.Blit(aTexture, rTex);
Graphics.Blit(bTexture, rTex);
//apply?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment