2012年7月22日

exercise: toon shader

摘要: introduction to 3d game programming with dx11---chapter 7,exercise 3:transforming Kd and Ks discrete functions like followingbefore using them in the pixel shader. 1 void FuncD(in float d,out float Out) 2 { 3 if(d <= 0.0) 4 Out = 0.4; 5 else if(d > 0.0 && d <= 0.5) 6 Out = 0.6; 7 el 阅读全文

posted @ 2012-07-22 01:09 zhkza99c 阅读(342) 评论(0) 推荐(0) 编辑

导航