摘要: Why Bothers? 为什么已经有ShaderForge这种可视化Shader编辑器、为什么Asset Store已经有那么多炫酷的Shader组件可下载,还是有必要学些Shader的编写? 2014-0718-1607-11-33.png 2014-0718-1607-11-33.png 因为 阅读全文
posted @ 2017-06-08 20:46 oayx 阅读(2916) 评论(0) 推荐(1) 编辑
摘要: 内置变量都在UnityShaderVariables.cginc文件中声明 变换矩阵 All these matrices arefloat4x4 type. Name Value UNITY_MATRIX_MVP Current model * view * projection matrix. 阅读全文
posted @ 2017-06-08 20:23 oayx 阅读(1782) 评论(0) 推荐(0) 编辑
摘要: Unity provides a handful of builtin values for your shaders: things like current object's transformation matrices, time etc. Unity为你在编写shader是提供了少量的内置 阅读全文
posted @ 2017-06-08 20:11 oayx 阅读(5554) 评论(0) 推荐(0) 编辑