This is embarrassingly simple. Though this would be more straightforward in GLSL, sticking to Shaderlab syntax I’d like to take the _Trans property and multiply the alpha of the entire result by it, essentially having it adjust the transparency of the render. The code:
Shader "Custom/FlatTextured"{
Properties {
_MainTex("Base (RGB) Trans (A)", 2D)="white"{}
_Color("Main Color",Color)=(1,1,1,1)
_Trans("Transparency",Range(0,1))=1
}
SubShader {
//queue and other settings here
Pass {
SetTexture [_MainTex]{
constantColor[_Color]
combine texture*constant
}
}
}
}
Tried combine textureconstant,texture_Trans but that throws an error. How to get _Trans to now be recognized as a factor for the texture context’s combine?