Shader "ShaderCustom/ShaderStructs" {
Properties{
_MainColor("MainColor",color) = (1,1,1,1)
_AmbientColor("AmbientColor",color)=(0.3,0.3,0.3,0.3)
_Specular("Specular",color) = (1,1,1,1)
_Shininess("Shininess",range(0,1)) = 1
_Emission("Emission",color) = (1,1,1,1)
_SetTexture("texture2d",2d) = ""
_SetSecondTexture("setSecondTexture",2d) = ""
// _TextureRet("texture rect",rect) = "whitle"{}
}
//fixed shader
SubShader{
pass{
color[_MainColor]
blend SrcAlpha OneMinusSrcAlpha //Shader lab blend
Tags { "Queue" = "Transparent" }
//设置环境光等。。。。
material
{
diffuse[_MainColor] //漫反射光
Shader 透明效果+纹理融合Code
最新推荐文章于 2024-02-27 23:44:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)