Shader question (560249)

I’m currently working on a Shader, and everything works fine,
however.

I need two different lighting modes, is this possible?

I need BlinPhong and Ramp.
I get them both to work, but it depend which one comes first.

If ramp is first it’s the one it reads, if BlinnPhong is first it reads that one.

I need to some how mix both together, I’ve tried putting in same line multiple ways.

Any help would be greatly appreciated!

Can you show the code?

I’m no expert on Unity’s shader system, but I think the issue is that the lighting mode is something that it builds in for you via its pragma tags, and it can only apply one of them. To do both, you’d have to write your own snippet of lighting code and have a pragma tag pointing to that.

The good news is that I’m pretty sure there’s instructions in the manual or the shader guide somewhere for that… Here. You might need to download the shader source to find the default lighting mode code, then make your hybrid by mixing the two.

I just tried to paste the code and it puts it in a bunch of Japanese looking stuff lol.
I’ll look at the link, thanks buddy.

I am trying to make a different style of toon shaders.

I’ve already got Normal maps and stuff to work with toon shader, looks beautiful.
But I want to build all the normal every day shaders into it, to still keep the you know Cartoonish feel, but allow the user to add a depth of realism into the cartoonish look.