Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CG 中是否有一些内置片段函数允许我在没有条件的情况下计算以下内容?
y = x>偏差?1.0f:0.0f;
几乎。它是>=而不是>
http://http.developer.nvidia.com/Cg/step.html
y = 步长(偏差,x);