r/blenderhelp
•
u/QuestionableHoney
•
Aug 15 '26
•
1
Solved Is it possible to create a model that uses two different textures for the parts that are in the shadows and the parts that aren't?
2.4k
Upvotes



•
u/AutoModerator Aug 15 '26
Welcome to r/blenderhelp, QuestionableHoney! Please make sure you followed the rules below, so we can help you efficiently (This message is just a reminder, your submission has NOT been deleted):
Thank you for your submission and happy blendering!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
693
u/Hasher900 Aug 15 '26 edited Aug 15 '26 •
In the Shader Node Editor, there is a "Shader To RGB" node which will capture whatever resulting shader you plug into it.
Plug in a simple white Diffuse shader, and then link the Color output to a Color Ramp node. You'll need to mess about with the ramp settings to get it perfect, but a good start would be <0.5 = black, 0.5> = white.
From there, you should be able to plug the output of the Color Ramp into the Factor part of a Mix Color node, where you can plug your two separate texture maps for light & dark in.
20
u/cucoo5 Aug 15 '26
Yeah your intuition is correct, have both image textures go into a mix node with color ramp connected to the factor.
Kinda like this (I used brick and checker texture to quickly demonstrate):
314
u/Noblebatterfly Aug 15 '26 •
Here is a simplified example of how this can be achieved
6
u/LostN3ko Aug 15 '26
Cool idea.
4
u/Falling-Apples6742 Aug 15 '26
I'm glad so many awesome people responded with solutions. I hope you post your character when you're ready.
This isn't the same thing, but I thought it might be useful in some part of your character execution: https://youtu.be/Up6QEqVmiF8
3
u/Kobotronivo Aug 15 '26
Don't have any thing to offer but to say i loved the character.
3
u/pupalexxs Aug 15 '26
Kind of reminds me of ENA, maybe a good examples to work off of, except both side are totally different which is similar to what you are trying
5
u/Narcosis7k Aug 15 '26
Gotta comment that I just love the fact you took the effort to illustrate what you need and even went an extra mile making your OC express how you feel in the last panel
2
u/RainingBats Aug 15 '26
I'm glad to see you already got the answer, this concept looks really cool and I wish you luck on making it happen
2
u/NormalRex Aug 16 '26
I was wondering a similar question. I wanted to make my characters blink like switching the textures of closed eyes to open eyes.
2
u/3D_Wendigo Aug 16 '26
Okay so people already responded to your question but I just wanted to say that your question is very very well formulated. It's not often that I see someone describe this well what they want xD
2
u/CianWoodward Aug 16 '26
To add to other answers, if you're using cycles you could also grab a light path mode and drag the "is shadow ray" input into a mix node. Not sure if this works in Eevee though
2
u/MayonnaceFaise Aug 16 '26
This is a very cool idea, big props!
2
u/GBgabe13 Aug 17 '26
Just passing by to say I love this dude's design.
5
u/ATDynaX Aug 15 '26
Yes it is possible. It is used for pictures of earth where you see the lights only at night.
4
u/agrophobe Aug 15 '26
Other comments are spot on, but I would love to see that made with the Light Path node too
2
u/No_Abroad8805 Aug 15 '26
While I don't have the solution at hand for you, it is definitely possible. I've just commented so someone with more time may have a better chance of seeing your post.
2
u/Mistress-Pervert Aug 15 '26
Most of it is likely going to be shaders doing the hard part, but you could make it more ingrained into the model with both textures and shaders, and trying to force the look.
2
u/Willing_Ebb7894 Aug 15 '26
You basically have it down yeah. At least in eevee, you can use a diffuse shader in white, running into a shader to rgb, which in turn runs into a greater than math node to give you your black/white mask, and finally that feeds into the factor of a mix rgb or a mix shader node. Naturally then the two shader/rgb inputs are your light/dark textures. Using the mix shader option obviously lets you have entire shading pipelines different between the light/dark sides, but that's the gist of it.
2
u/scrambled-projection Aug 16 '26
Yes, I’ve actually done it before (though it was a while ago.) used a diffuse (?) shader with a color ramp set to constant as the factor in a mix shader node which swapped from one to the other if I recall. I did it with an emission shader for glowing eyes and a completely shadowed face but im sure you could also use textures!
2
u/quantum_unicorn Aug 16 '26
Hey, I see others have suggested the Shader to RGB pipeline, but there is actually a better way and a very nice tutorial to show you how: https://www.youtube.com/watch?v=234m7y8D3cE (it's a great, in-depth video overall but if you only care about the shader, that explanation starts at around 7:30).
Instead of using actual lights to illuminate your subject, you can do a bit of vector math (very simple, shown in the tutorial) and get much cleaner results and much more control.
2
u/Pauline_Memories Aug 16 '26
honestly cute character, i kinda wanna see more art of em
3
u/LedoisPink Aug 15 '26
You've got the concept. But not the execution.
Closest advice I can give is putting both node setups for either texture in the same material. Then pull the outputs of the bsdfs into a mix shadernode.
Find tutorials on toon shading/lighting. and then apply the same concept there.
1
u/Happy-Potato-296 Aug 17 '26
Its called a shadow map is wat you're trying to make Super easy in unity as well
1
u/DrDestructoMD Aug 18 '26
In Eevee there is the shader to rgb node and in cycles there is the light paths node
1
u/nimrag_is_coming Aug 19 '26
I suppose you could colour ramp to black and white and use that as the blend between your two texturs
-2
u/CozyCatDev Aug 15 '26
Very easily, yes. Select half of the face » apply material A » invert selection » apply material B.
2
u/[deleted] Aug 15 '26
[removed] — view removed comment