infinity10 opened this issue on Mar 12, 2014 ยท 95 posts
bagginsbill posted Sat, 04 July 2015 at 7:01 AM
I note that you have boxed yourself into the front-back paradigm when you don't even want that. The "front" of your leaf seems to be facing down at times, and this isn't what you are after. Instead, you should be shading one way or another based on up or down. The top of the leaf is whichever face is on top, right?
To detect up or down, top or bottom, use the N (normal) variable node, configured with a huge Y multiplier. Now connect that to your blender to decide which input to take.
Here I configured my blender top use Input_1 for top, Input_2 for bottom, which I got by configuring -1000 in the y component of the N node. I demonstrate on my mat pawn, to show that this works with any shape, not just a one-sided square.

Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)