Shader-Level Specular Contribution

Shader-Level Specular Contribution

jamesearnest244
Contributor Contributor
722 Views
6 Replies
Message 1 of 7

Shader-Level Specular Contribution

jamesearnest244
Contributor
Contributor

Hi,

I'd like to turn off a specific shader's ability to show direct specular reflections (reflections of light sources), and have it only show indirect specular reflections (reflections of objects around it).

I need to do this at the shader level, and not at the light level, because this shouldn't apply to all shaders in the scene.

I've considered the rayswitch shader, but it doesn't separate direct/indirect specular.

Thanks for any tips!

0 Likes
723 Views
6 Replies
Replies (6)
Message 2 of 7

lee_griggs
Autodesk
Autodesk

There is a separate indirect_specular here:

https://docs.arnoldrenderer.com/display/A5AFHUG/Advanced

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 3 of 7

jamesearnest244
Contributor
Contributor

Thanks Lee. This parameter allows you to control the amount of indirect specular. But I still get the reflection of the light sources on the object, even with Specular set at 0. Maybe this is because I'm dealing with a metallic object (Metallic set to 1)? Do you know how I can get rid of the reflection of the light source?

0 Likes
Message 4 of 7

lee_griggs
Autodesk
Autodesk

If I disable the specular contribution of the light, I still get indirect_specular appearing in the sphere.

1646202611655.png

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 5 of 7

jamesearnest244
Contributor
Contributor

Right, but I do want this light to contribute specular to other shaders.

0 Likes
Message 6 of 7

lee_griggs
Autodesk
Autodesk

You could link a different light to them or use LPEs/AOVs.

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 7 of 7

jamesearnest244
Contributor
Contributor

Great idea, it didn't occur to me. Thanks!

0 Likes