Shader graph Alpha Clip with transparency
I'm trying to create a shader using Shader Graph, that will get alpha from "Vertex Color", but will also get clipped using Alpha Clip Threshold.
The desired effect is a transparent object that gets cut outside of a given area.
The cutting effect I was able to achieve, as in the picture, but adding the transparency is more difficult, as it alters the clipping as well.
I got close, and made a Shader that clips at the desired distance, but it fades as it gets closer to the clip distance, which is not the desired behavior.
It can be done, but it seems to be some relation between Alpha, and Alpha Clip Threshold, that I can't quite figure out.
Answer by maxizrin · Nov 04, 2019 at 02:46 PM
Had an epiphany, and got it to work!
For those who may need something of the sort, here's the solution:
Blend the clipping with the alpha, in a Blend node, and connect to the Alpha Clipping Threshold.
Set the blend mode to "multiply".
The Alpha channel connects to Alpha as usual.
And the result:
Your answer
Follow this Question
Related Questions
Shader Graph - position node with texture ? 2 Answers
Water Shader foam does only work in SceneEditor 0 Answers
Custom AR Plane shader with Shader Graph 0 Answers
How to make shader like among us,How to create color shader like Among Us 1 Answer
Shader Graph shader Material not showing on certain models 2 Answers