I'm looking to apply two different materials to a single mesh named "mesh1."
mat1 will be red in color, while mat2 will be blue.
The distance between the camera and the mesh is set at "1 unit."
When mesh1 is close to the camera (between 0.1 and 0.4 units), it will appear red. However, when it's far from the camera (between 0.6 and 1 unit), it will appear blue. During the transition phase (from 0.41 to 0.59 units), the depth will control the gradient shift from red to blue on the object.