摘要:
效果图 半角向量和法线重叠时,为最亮, 此时夹角为0, dot(normal, halfDir)=1 using UnityEngine; [RequireComponent(typeof(MeshFilter))] public class ShowHalfDirTool : MonoBehavi 阅读全文
摘要:
平时用的比较少,一直记不起来的,对应c#中的 do while local i = 1 local len = 10 repeat --do something i = i + 1 until i <= len for是最常用的 local len = 10 for i=1,len do --do 阅读全文
摘要:
table_ext.lua 如果table不为空则新建 function table.getEmptyTable(tb) if nil == tb or nil ~= next(tb) then return {} end return tb end function table.isEmpty(t 阅读全文
摘要:
table_listext.lua function list.reset(listTb, val) for i=1,#listTb do listTb[i] = val end end function list.castItemToNum(listTb) for i=1,#listTb do l 阅读全文