Hi guys, I created a Shader in the Playground: Babylon.js Playground
If you use the mouse wheel (zoom in) the sphere will vanish eventually due to the discard command in line 57.
Now I would like to pass in different vDiscardZ values. My use case would be, that I create a slider in my GUI and if the users drags the slider the vDiscardZ value gets changed in realtime.
How would I approach that?
Furthermore, would it be possible to build this kind of shader in the new Node Material Editor? I was playing around a bit but wasn’t able to get it done.