Shader与Cube两张材质逐渐转换.docxVIP

  • 7
  • 0
  • 约小于1千字
  • 约 3页
  • 2019-07-14 发布于湖北
  • 举报
Shader与Cube两张材质逐渐转换 Posted on 2013年04月01日 by U3d / \o 查看 Unity3D脚本/插件 中的全部文章 Unity3D脚本/插件/被围观 277 次 Shader与Cube两张材质逐渐转换,如下图: Shader与Cube两张材质逐渐转换U Unity3D脚本如下: Shader VrorangeShaders/MixTexture { Properties { _Color (Main Color, Color) = (1,1,1,1) _Texture0 (Texture0 (RGB), 2D) = white {} _Texture1 (Texture1 (RGB), 2D) = white {} _MixValue (MixValue (Range),Range(0,1)) = 0.5 } SubShader { Cull Back ZWrite On ZTest LEqual Tags {Queue=Geometry+0 IgnoreProjector=False RenderType=Opaque } CGPROGRAM #pragma surface surf Lambert float4 _Color; sampler2D _Texture0; sampler2D _Texture1; float _M

文档评论(0)

1亿VIP精品文档

相关文档