
工具
文章平均质量分 83
xtxy
这个作者很懒,什么都没留下…
展开
-
golang 和 python 微信菜单设置
微信公众号开发中,需要发送http请求来设置菜单。写了一个程序放在这里,避免每次用postman发请求的麻烦。golang代码如下:package mainimport ( "bytes" "encoding/json" "flag" "fmt" "io/ioutil" "net/http" "os")const ( WX_ID = "xxxxxx原创 2015-06-24 14:05:37 · 1873 阅读 · 0 评论 -
mac下liteide gdb 调试
需要将gdb做一个codesign操作,方法如下:On MacOSX lldb needs to be code signed. The Debug and Release builds are set to code sign using a code signing certificate named lldb_codesign. If you don't have one转载 2015-11-03 11:04:29 · 3626 阅读 · 0 评论 -
u3d honey hex framework 代码解读记录(一)
honey hex framework: https://www.assetstore.unity3d.com/cn/#!/content/21650// file: CameralControl.csif (GUILayout.Button("Generate World")){// 将地形和配置资源load到游戏中// 游戏设置(MHGameSettings)和地形原创 2016-07-11 23:06:26 · 2263 阅读 · 0 评论 -
u3d honey hex framework 代码解读记录(二)
// file: WorldOven.cs/// /// If baking were requested this function will handle starting all required processes and default settings required for initial pass/// /// void Update(){ // 如果有dirty原创 2016-07-12 23:11:45 · 2799 阅读 · 0 评论 -
u3d honey hex framework 代码解读记录(三)
// 接着上次的baking函数段 -------------------------------------------------------------------------// 因为各个烘焙阶段都是使用shader来工作的,所以目前看烘焙相关的代码会觉得不是很清楚// 等到将这个大的流程粗略过完之后,我会回头将每个shader和对应的函数解读一下// 大概需要等到下下篇文章了/原创 2016-07-13 18:44:28 · 2964 阅读 · 0 评论 -
u3d honey hex framework 代码解读记录(四)
// 接着上次baking函数中的循环开始// 生成阴影贴图,源和高度贴图源是一样的,目标贴图小了很多,边长是2的4次方分之1//Render shadow and light to scaled down texture and copy it to Texture2Dint scaleDownPower = 4; //scaling it down 4 powers will resi原创 2016-07-14 23:12:37 · 2030 阅读 · 0 评论 -
u3d honey hex framework 代码解读记录(五)
// 接着讲上次剩下的一个函数chunk类中的GetForegroundData/// /// parses through controlled hexes and produces single list of the foreground data which fits within chunk /// Note that single hex may be shared up to原创 2016-07-15 22:56:26 · 2265 阅读 · 2 评论