I am trying to give a colored 3D Cube which has a specific Color a differently colored border. The Cube uses currently a Mixed Reality Toolkit/Standard Shader by which it is colored. Now i would like to still color the cube by this shader but also color the edges of the cube in Black.
Is there a way to do this without changing the Shader. I only found examples like the Asset Quick Outline but they do not color all edges. Further they make the object bigger as they add the outline on the outside. I want the border to be on the "inside" of the cube so that the size stays the same. As visual example of what i want to achive see the following images:
Example with wrong Outline (like Quick Outline):
Example with correct Outline:
Do i need to write my own shader or is there a shader which does this. Or is it even possible to do this without a specific shader with some mesh code i did not found?
I now found a Solution with the currently used Mixed Reality Toolkit/Standard Shader. There is a option called Border Light which creates a black/white border around the edges of my cubes.
I have attached a photo of the unity parameters for others who may also be in need of such an effect.