摘要:
原理 根据能量守恒,以及一系列光照原理得出微表面BRDF(Bidirectional Reflectance Distribution Function)公式 // D(h) F(v,h) G(l,v,h) //f(l,v) = // 4(n·l)(n·v) D;微表面法线分布函数,选取ggx近似 阅读全文
摘要:
1max里的模型,角度值都是0,到了unity里就有个x轴-90度,需要在max里,按x轴转正90度,到unity里就都是0,0,0 2动画有抖动,是因为动画压缩导致的 阅读全文
摘要:
手游休闲单机游戏,用户主要来源于三大运营商,付费方式主要为短信付费,付费率和付费值偏低,生命周期短,基本沦落到骗钱为生了,遇到的骗术:1免费英雄,免费道具,后面好的要花钱,但是显示不明显,玩家误以为也是免费的,...2退出时,提示消费,玩家习惯以为是确认取消,误操作,结果就扣钱了降低付费玩家投诉率的... 阅读全文
摘要:
JsonDecoder={ pos:0, isDigit:function(ch){ return ( ch >= '0' && ch = 'A' && ch = 'a' && ch <= 'f' ) ); }, toTrue:function(str, from,to) { JsonDeco... 阅读全文
摘要:
cocos2dx里加载cocosudio导出的ui配置文件,在这之上封装了一下,封装核心类包括UIManager,UILayer,UIOwnerUIManager是所有ui总的管理类,代码如下:UIManager = { battle = 1, city = 2, login = 4, ... 阅读全文
摘要:
多玩大厅在接受到了页面的documentcompleted事件,才会把遮在页面前面的YY游戏中去掉,我们的游戏页面,YY大厅接收不到事件,所以就排查了下发现原因在于js脚本里有个用iframe做上报功能的代码,大致代码如下:document.getElementById("report").src=... 阅读全文
摘要:
local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sclocal function createLayerSc... 阅读全文
摘要:
local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sclocal function createLayerSc... 阅读全文
摘要:
local uilocal function createLayerUI() if not ui then ui=cc.Layer:create(); createLayerUI=nil; end return ui;endlocal sceneGame=cc.Scene:create()sce... 阅读全文
摘要:
#include #include #include "FreeImage.h"#include #include #pragma comment(lib, "FreeImage.lib")GLuint texture; // Storage For One Texture ( NEW )/... 阅读全文