Surface shader that changes color by indentation

   1010   1   0
User Avatar
Member
340 posts
Joined: June 2017
Offline
I can create a simple color shading effect by assigning an attribute to points and having them effect color (see attachment)if there is a simple model where the attribute is easily defined, but is there a way of creating the same effect based on surface shading nodes so that it could be used for more complex objects? What I want is the equivalent of some ambient occlusion color and noise but done as a shader, not an environmental light or render pass. The attached Houdini file and image are what I would like to obtain, but without having to use a point attribute/color. Thanks.
Edited by Island - Feb. 4, 2022 01:06:57

Attachments:
PointColorNoise.hiplc (573.3 KB)
PointColorNoise.jpg (224.9 KB)

User Avatar
Member
340 posts
Joined: June 2017
Offline
It looks like I found a solution. I was considering trying to measure curvature and base color on that attribute, but a simple ramp off an occlusion worked ok. It still would be better to control this by curvature, but I don't know how to set this up.
Edited by Island - Feb. 4, 2022 13:07:45

Attachments:
OcclusionColorImage.jpg (158.7 KB)
OcclusionMaterial.jpg (50.8 KB)

  • Quick Links