Shader "Unlit/Transparent (Alpha)"
{
Properties
{
_Alpha("Alpha", Range(0,1)) = 1
_MainTex("Texture", 2D) = ""
}
SubShader
{
Tags {Queue = Transparent}
ZWrite Off
Lighting off
Cull Back
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
SetTexture[_MainTex]
{
ConstantColor(1, 1, 1, [_Alpha])
Combine texture, texture * constant
}
}
}
}
2013년 6월 1일 토요일
Unity3D Unlit/Transparent (Alpha) Shader
Tag:
alpha,
shader,
transparent,
Unity3D,
unlit
2013년 2월 27일 수요일
C# Using delegate event
public delegate void EventHandler(); public event EventHandler LoadCompleted = null;
피드 구독하기:
덧글 (Atom)