I have a custom shader that is basicly just rendering a object with vertex colors. I am trying to get shadows working by using LightPath node, but everything renders black when I apply that node. Using Eevee renderer.
Asked
Active
Viewed 95 times
0
-
5Hint: the colors of the nodes in and output socket indicate the type of the connections. Connections mostly only make sense between sockets of the same color. At the very least you probably want an emission BSDF somewhere. – Leander Jan 15 '20 at 15:30
-
2That node arrangement makes no sense at all. You cannot mix different kinds of data and expect them to work. Read: What is the meaning of the color of the node sockets and shader node ahat are the exact data types – Jan 15 '20 at 16:11
-
@cegaton multiplying scalar with vector is possible, so that should work. – KJS Jan 15 '20 at 17:02
-
Looks like light path node can be used only with shader nodes, otherwise it does not do anything, even with matching colored node connections. – KJS Jan 17 '20 at 08:02
1 Answers
0
The way to get control of the shadows was to have a light with high intensity, and then a mesh with white albedo color. Then the node graph in the image shows how to filter the shadowed part out from the render. There's no light path node at all anymore.
KJS
- 237
- 1
- 9

