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

Fragment and vertex shaders generally don't target strict IEEE754 compliance by default. Transforming a * (b ? 1.0 : 0.0) into b ? a : 0.0 is absolutely something you can expect a shader compiler to do - that only requires assuming a is not NaN.


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

Search: