A simple question, which is faster? “saturate(x)” or “max(0, x)”? It’s a tiny problem, but it might be good to know for those people who write shader program. For example, when writing a shader for diffuse lighting, write a code
A simple question, which is faster? “saturate(x)” or “max(0, x)”? It’s a tiny problem, but it might be good to know for those people who write shader program. For example, when writing a shader for diffuse lighting, write a code