Ejemplo n.º 1
0
    public static void CopyArrayIntoTexture(Texture2D[] sourceTexs, Texture2D targetTex)
    {
        Rect source = new Rect(0f, 0f, (float)targetTex.width, (float)targetTex.height);

        TextureScale.GPUArrayCopy(sourceTexs, targetTex.width, targetTex.height);
        targetTex.ReadPixels(source, 0, 0, false);
        targetTex.Apply(false);
    }