Shader "mask shader"
{
Properties
{
_MainTex (
"Base (RGB)", 2D) = "white" {}
_Mask (
"Culling Mask", 2D) = "white" {}
_Cutoff (
"Alpha cutoff", Range (0,1)) = 0.1
}
SubShader
{
Tags {
"Queue"="Transparent"}
Lighting Off
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
AlphaTest GEqual [_Cutoff]
Pass
{
SetTexture [_Mask] {combine texture}
SetTexture [_MainTex] {combine texture, previous}
}
}
}

 

相关文章:

  • 2021-09-11
  • 2021-08-09
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
猜你喜欢
  • 2021-11-17
  • 2021-08-03
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
相关资源
相似解决方案