I am working on a project that requires me to have outlines on cubes, the outline HAS to be a shader, not matter if it's a combination of nodes or a script,it has to be a shader. Meaning that I can't add extra-mesh like the solidify modifier would do.
And I couldn't find any way to do outlines on a sharp cube with nodes, every single way I saw to do it was with smooth objects. The project I'm working on will be NPR, and I want to render on my GPU to minimize render time.
Here is a mockup of what I want to do, you can see all of the objects in the scene have their outline visible, and only the OUT-lines
The outline also has to be able to take a texture's color, so the solodify modifier is NOT an option (I said it already but I want it to be clear). Here is a mockup of how it would look
Hope this was precise and well explained enough.
EDIT : Freestyle is NOT an option.