Search Unity

Runtime R8 Format Compression

Discussion in 'Scripting' started by razzraziel, Apr 26, 2019.

  1. razzraziel

    razzraziel

    Joined:
    Sep 13, 2018
    Posts:
    396
    Hi!

    I have R8 formatted textures(R channel only) but cant compress them on runtime. Texture2D.Compress() is converting them to DXTs and also resets their color arrays. Is there any way to compress them into BC4 like in the editor? And without data loss of course.


    I cant even use SetPixels on BC4 format. So i dont know how to convert my textures to that on destroy.
     
    Last edited: Apr 26, 2019