I'm working some Opacity Mask stuff and am trying to use the Mask Clip parameter. When I plug a node into the Shader.OpacityMask attribute I see that the 'Mask Clip Value' parameter shows up in the Inspector.
Is there any way to query that parameter? There is the 'Template Parameter' node but unlike teh Particle Texture, I can't use it to template the Mask Clip. That being said, is there any way to access this value within the shader itself?
The Template Parameter node is only meant to be used within templates, to access shader properties and global variables declared over the current template shader.
In the Surface shader, you can either create a Float property with its Property Name set according to the shader property you want to access, the Type set to 'Global' and the Variable Mode to 'Fetch', as per the example below:
Or you can configure the Mask Clip Value by a custom shader property, which will allow you to access its value through the node you set up for this effect:
I am still struggling a bit with properly driving the Mask Clip Value to suit my needs. I have tried to parameterize it via the instructions above but I need the ability do reference a variable in these slots instead of just properties.