inalogic / pico-pixel-public

Public issue tracker for Pico Pixel http://pixelandpolygon.com
MIT License
7 stars 0 forks source link

LUMINANCE textures displayed as RED #9

Open MarkCallow opened 11 years ago

MarkCallow commented 11 years ago

KTX files containing textures have a format of LUMINANCE are displayed as RED. You can use GL_R8, as you are obviously doing, but you need to also apply a swizzle of RED, RED, RED, ONE in order to correctly display them as grey scale images.

MarkCallow commented 11 years ago

Also the color swatch in bottom left remains black regardless while the LUMINANCE texture is displayed, regardless of pointer movement.

If Github allowed attachments to issues I would provide you the relevant KTX files. You will have to get them from the KTX lib distribution. They are the files with "luminance" in the name.

jaytaoko commented 10 years ago

Fixed in Pico Pixel 0.6.5. Your feedback is appreciated! luminance

Regards!