Im trying to do an ink cartridge: I was thinking that it could basically consist of a capsule with a solid color and a float representing the percentage of the capsule to render from top to bottom or vice versa, what ever is doable. I see it is possible to add float properties to a shader.
My question is: Is it possible to make a shader that only renders a percentage of the capsule? Or am i going about this in the wrong way?
Funktionality wise it is somewhat compareable to the Reveal Non-Uniform Texture shader on the wiki, only i don’t really need all the alpha channel stuff only need to not render some percentage of the capsule based on the float property value.
Regards,
Marc