Heya, I have this shader I used to use for masking textures back in Unity2x thanks to Eric5h5 and well… its 3 now so since I have the mental capacity of an infant when it comes to shaders and engrish I need halpz I know we have some gods in shader labs so I figured I’ll drop it off here.
Thanks! ![]()
Shader "MaskedTexture"
{
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}
}
}
}
EDIT : Sorry ladies wrong one
this is the one I was working with - the masking works however
thanks to my incoherency I am garbage at shaders and I cant even fathom changing _MainTex to RGBA alpha ![]()
Sorry…