Page 1 of 1

How to change shadow color when using octane toon shader

Posted: Wed Jul 03, 2024 8:13 am
by anatolewilson
Hi Guys,

I want to change the color of the shadow while using toon shader but I am not able to do so as there is no option of changing color. I suppose I need to do anything extra for this.

So can you please tell me what step I need to choose for this?

Thank you so much!

Re: How to change shadow color when using octane toon shader

Posted: Thu Jul 04, 2024 7:39 pm
by frankmci
If I understand your question, shadow color is controlled by the diffuse ramp of the Toon Material being shadowed; at least that's how I've done it the few times I've needed toon shading. It's not specifically a shadow color, so much as it is the color of the surface when weakly illuminated, regardless of whether that illumination is direct or indirect. In this quick example, the shadows on the ground are green because the low end of the Toon Material's Diffuse ramp is set to that color.

Re: How to change shadow color when using octane toon shader

Posted: Mon Apr 14, 2025 10:59 am
by ablejail
It might be necessary to adjust the shadow colour directly in the shader code in order to change the colour of the shadow in a toon shader. Locate the shadows area, then adjust the parameters or create a custom colour input.

Re: How to change shadow color when using octane toon shader

Posted: Thu May 29, 2025 2:59 am
by SprunkiRetake
Hi frankmci!
Based on your method I can make any color I want right?

Re: How to change shadow color when using octane toon shader

Posted: Thu Jun 12, 2025 8:34 am
by Lillian Quinn
If you are using Unity Shader Graph (URP or HDRP): geometry arrow
Add a new color property — called ShadowColor.

Increase the luminance using the dot product between the surface and the directional luminance.

Use the Step node to determine where the shadow starts (simulates hard shadow edges).

Use the Lerp node to mix between the base color and `ShadShadowColor based on the output step.

Export the result to the base color (Albedo).