摘要: Shader "Surface/Diffuse Simple" { SubShader { Tags{"RendType" = "Opaque"} CGPROGRAM #pragma surface surf Lambert struct Input { float4 color:COLOR; }; void surf(Input IN,inout... 阅读全文
posted @ 2017-10-26 10:49 AlanE 阅读(102) 评论(0) 推荐(0) 编辑
摘要: //http://blog.csdn.net/poem_qianmo/article/details/49556461 Shader "Custom/Surface/MainText_1" { Properties { //2D、Rect、Cube的默认值后面可以跟上{} //TexGen texgenmode : 自动生成贴图的uv坐标。texgenmode参数可以是:Object... 阅读全文
posted @ 2017-10-26 10:17 AlanE 阅读(230) 评论(0) 推荐(0) 编辑