Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you create a sRGB texture on a modern GPU, the R/G/B channels are stored in sRGB (functionally a lot like gamma correction in this case) while the alpha channel is always linear 0-255. So while the GPU's texture samplers will convert the R/G/B channels to linear before filtering or sending the result to a shader, nothing gets done to the alpha channel.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: