Shader "Blend 2 Textures, Simply Lit" { Properties {_Color ("Color", Color) = (1,1,1)_Blend ("Blend", Range (0,1)) = 0.5 _MainTex ("Texture 1", 2D) = "" _Texture2 ("Texture 2", 2D) = ""} Category {Material {Ambient[_Color]Diffuse[_Color]} // iPhone 3GS and laterSubShader {Pass {Lighting OnSetTexture[_MainTex]SetTexture[_Texture2] { ConstantColor (0,0,0, [_Blend]) Combine texture Lerp(constant) previous}SetTexture[_] {Combine previous * primary Double}}} // pre-3GS devices, including the September 8GB iPod touchSubShader {Pass {SetTexture[_MainTex]SetTexture[_Texture2] {ConstantColor (0,0,0, [_Blend])Combine texture Lerp(constant) previous}}Pass {Lighting OnBlend DstColor SrcColor}}} }
推荐整理分享unity混合两种贴图shader(unity 2d 3d混合),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:unity 合并贴图,unity怎么合并两个场景,unity合并模型,unity合并两个场景,unity 合并贴图,unity 合并贴图,unity 合并贴图,unity 合并贴图,内容如对您有帮助,希望把文章链接给更多的朋友!
unity 几种触发事件 1.在button上挂BoxCollider,勾上IsTrigger.添加UIButtonMessage,设置Target和FunctionName。2,.在button上挂BoxCollider,用在GameObject上挂UIEventListener,再写个脚本获取并处理
Untiy粒子特效运行时修改Scale 粒子整体缩放不好修改,从网上找了个插件其实就是一个C#脚本而已,挂载在粒子物体上即可实时修改Scale,这是下载地址
Unity之megaFierstext翻书插件控制代码分析 需要在Unity实现达到仿真的翻书效果,我们一般可以借助megaFierstext插件来完成。下载地址: