Unity shader 双面 + alpha 且正常受光

来源:互联网 发布:ubuntu 16.04 安装出错 编辑:程序博客网 时间:2024/04/29 14:30
Shader "DoubleSide/Diffuse" 
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader
{
Tags { "Queue" = "Transparent" }
Material
{
Diffuse [_Color]
Ambient (1,1,1,1)
}
Pass
{

Lighting On
Cull off
Blend SrcAlpha OneMinusSrcAlpha

SetTexture [_MainTex]
{
constantColor [_Color]
Combine texture * primary DOUBLE, texture * constant
}
}
}
FallBack "Diffuse", 1
}
原创粉丝点击