摘要:
就是将颜色值通过映射公式得到另一种颜色值,比如:将颜色值*0.8也算是映射公式 但这边介绍的映射公式可以得到一种电影校色的效果,至于原理,一般都是经验公式。 效果 c#代码 using UnityEngine; public class TonemappingEff : MonoBehaviour 阅读全文
摘要:
效果 c#代码 using UnityEngine; public class MyBrightnessSaturationAndContrast : MonoBehaviour { public Shader m_Shader; public Material m_Material; [Range 阅读全文
摘要:
lua下常用的2个protobuf库 1) GitHub - starwing/lua-protobuf: A Lua module to work with Google protobuf 2) GitHub - cloudwu/pbc: A protocol buffers library fo 阅读全文
摘要:
像ugui的点击按钮,然后触发相关逻辑,都是回调模式的写法,比如下面代码的ShowAlert调用 public class Test7 : MonoBehaviour { public GameObject m_Alert; public Text m_TxtMsg; public Button m 阅读全文
摘要:
c# 部分 public class Test5Obj { public int i; private string str; public Test5Obj() { } public void PrintInt() { Debug.Log($"c# PrintInt:{i}"); } public 阅读全文