Shader "Custom/MyShader" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)//Tint Color
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 100
Pass {
cull front
Lighting Off
SetTexture [_MainTex] { combine texture }
SetTexture [_MainTex]
{
ConstantColor [_Color]
Combine Previous * Constant
}
}
}
}
这是unity中的设置,设置好了再用Laya的3d插件导出来就好了