I am trying to make a simple material that makes an outline effect. My plan is to have a smooth version of 3D models that are supposed to have this material. Because they are smooth - they have no duplicate vertices - they can be scaled up with a material / shader without artifacts.
The outline model is, of course, supposed to be rendered before the main model. The main model is supposed to be rendered on top of the outline. I don’t think there exist a way to change default Render queue for a Shader Graph, but there is a property for changing Render queue on materials made with Shader Graphs, but it doesn’t seem to change anything.
The outline model has the correct shape and size, but I can’t get it to be rendered before the main model. How do I change the order the models are rendered?
The outline model has been moved for illustration purposes. In shader programming, there is the ZWrite On/Off, which I can’t find a way to change that either in Shaderlab. I think Render queue has precedence over ZWrite anyway.