摘要: (1)lerp(a, b, w) = b*w + a*(1.0-w)(2)反射向量R=L-2(N·L)*N L入射向量 N法向量 R反射向量由于这几个向量都是单位向量,长度为1.所有构成菱形。菱形对角线相互垂直切平分。我们很容易看出R-L的结果(R加上-L(绿色的那根))与N是共线的(同方向),而且... 阅读全文
posted @ 2013-03-25 17:13 U_探索 阅读(445) 评论(0) 推荐(1) 编辑
摘要: Where Does the Vertex Data Come from?where does the vertex shader get its data from? Within Unity, the answer is that the Mesh Renderer component of a game object sends all the data of the mesh of the game object to OpenGL in each frame. (This is often called a “draw call”. Note that each draw call 阅读全文
posted @ 2013-03-25 15:53 U_探索 阅读(771) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/android_tutor/article/details/7015986 阅读全文
posted @ 2013-03-25 14:32 U_探索 阅读(194) 评论(0) 推荐(0) 编辑