I really enjoy your streams
I have a question about one of the shaders I’m currently working on; I have found parts of solutions on the web, now I would like to understand :
I’m making a vial shader where I can change the quantity of liquid
1-In yellow: Here, I’m guessing I get each pixel’s coordinates relative to the object pos instead of the world position? (forget about the “z,” I didn’t change the comment, I’m now getting that later)
2-In blue: Then I’m lost… I suppose I understand that Object Radius should be the B in the Lerp. Otherwise, when scaling my object, it would change the position of the liquid in the bottle. However, I don’t get why subtracting that modifies my mask.
If you have any insight on those questions, help would be greatly appreciated!