In this example, i have a red sphere which has a material, and i want the areas on the surface of the red sphere that overlap by the green spheres (the green spheres are not visible, but rendered for debugging purposes) to have another material. So the goal is to have the red material sphere with circular areas with another material.
Also i would like the stencil shader(s) to have the same rendering properties as the unity standard shader.
How can i achieve this effect? I have seen that the unity manual does something similar to this, but i feel that i need a concrete example to get started with stencil shaders.