1
$\begingroup$

Toon BSDF and Shader to RGB not fit for me, and I trying to create flat color shader in cycles. I decided to use this shader, and it works well, until the metallic roughness not "0", then it is reflect like diffuse. I was looking for it on other questions, but there shaders not completely flat. And I want just shadeless material, and this should be reflect like flat. This s blender file, if you want to test shader quickly

Edited: Diffuse shader added to not to illuminate objects around

Edited 2: Partially resolved with adding "Is Glossy ray" output to "Fac", but some part of rays still illumnate objects around. Not final resolve

enter image description here enter image description here enter image description here

$\endgroup$
4
  • $\begingroup$ Hello :). The Emmision shader with strength=1 will give you exactly that. A flat color not receiving any shadows or lights. $\endgroup$ Commented Jul 10, 2020 at 9:24
  • $\begingroup$ @JachymMichal So am I doing this, or what do you mean? This shader does not work in reflection, when roughness chahging $\endgroup$
    – user99579
    Commented Jul 10, 2020 at 9:27
  • $\begingroup$ Related blender.stackexchange.com/questions/131015/… blender.stackexchange.com/questions/148336/… $\endgroup$
    – batFINGER
    Commented Jul 10, 2020 at 9:51
  • $\begingroup$ @batFINGER I readed this erlier, it is not working $\endgroup$
    – user99579
    Commented Jul 10, 2020 at 10:02

1 Answer 1

7
$\begingroup$

Flat Color

  • plug RGB node directly, there is no need to use Emission shader

Flat Color in Reflection with Roughness

  • math Light Path of Camera Ray with Glossy Ray** and use as factor in Mix Shader node

Shadow

  • current setup generates shadow, if you dont want that plug Transparent shader into top Shader socket of Mix Shader node.

For your Edit2: Delete your Diffuse Shader that generates indirect light on surrounding objects.

enter image description here enter image description here

Great article to check How the light path node works

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .