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);