예제 #1
0
파일: ES2Web.cs 프로젝트: JCYTop/Project_X
    public Texture2D LoadImage()
    {
        CheckWWWUsage();
        CheckDownloadUsage();

        return(ES2.LoadImage(data));
    }
예제 #2
0
 void ApplyTextureFromSaved()
 {
     //fogTexture.SetPixels(0, 0, fogTexture.width, fogTexture.height, savedMap);
     if (ES2.Exists("savedFogTexture.png"))
     {
         fogTexture = ES2.LoadImage("savedFogTexture.png");
         fogTexture.Apply();
         renderer.material.mainTexture = fogTexture;
         fogTexture.Apply();
     }
     else
     {
         print("No texture found");
     }
 }