Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            print("saving a picture of the map");
            SaveImage(RTImage(cam), Data.PathScreenShot);

            print("saving world object map");
            wOM.UpdateWOTex();
            SaveToImage.SaveImage(wOM.wOTex, Data.PathWOMap);

            print("merging world object map into heightmap");
            AddWorldObjectsToHeightMap();

            print("saving visited map");
            SaveImage(vMM.VisitedTex, Data.PathVisited);

            print("overriding visited information");
            SaveImage(OverrideVisited(Data.PathHeightMap, Data.PathVisited), Data.PathHeightOverriden);
            SaveImage(OverrideVisited(Data.PathScreenShot, Data.PathVisited), Data.PathScreenOverriden);

            print("adding height map");
            SaveImage(Steganography.HideImage(Data.PathScreenOverriden, Data.ScreenShotWidth, Data.ScreenShotHeight, Data.PathHeightOverriden, Data.HeightMapWidth, Data.HeightMapHeight, Data.BitsHidden), Data.PathCombined);
        }
    }