![]() LoadImage will replace with with incoming image size. Using UnityEngine public class ExampleScript : MonoBehaviour ImageConversion.EnableLegacyPngGammaRuntimeLoadBehavior to true. With older projects that dynamically load textures using LoadImage, set If you want to retain this old behavior, for example when working (A Texture2D object is sRGB if its linear constructor parameter was false, which is theĭefault, and linear if the parameter was set to true.) Note: In previous versions of Unity, texture data from all PNG textures containing a gAMA block If the texture data uses the linear color space, then you must use a linear Texture2D object. If the texture data uses the sRGBĬolor space, you must use an sRGB Texture2D object for correct rendering results. This function loads the texture data without gamma correction. Texture will be uploaded to the GPU automatically there's no need to call Apply. ![]() If the platform is not able to perform runtime compression then false will be returned. ![]() Then the loaded image will be DXT-compressed (into DXT1 for JPG images and DXT5 for PNG images). The LoadImage function replaces texture contents with new image data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |