- Home /
Question by
Red Turkey Wizard · Feb 22, 2011 at 02:21 PM ·
textureimportpostprocessimporter
Custom texture importer
I am trying to write a custom texture importer, basically a postprocess for importing an exr HDR image and converting it into a DXT5 with brightness encoded in alpha in a particular way, but I haven't been successful.
I ideally want this process to be transparent, i.e. script is applied to the image, and when the source file changes, the DXT5 is automatically regenerated.
Anyone managed to do something like this?
Cheers, RedTurkeyWizard
Comment
Best Answer
Answer by Paulius-Liekis · Feb 23, 2011 at 12:53 PM
You might want to look into AssetPortprocessor class - it has methods for postprocessing imported textures.
Doh. Thats what I was looking for.
Cheers, RedTurkeyWizard