System Information
Operating system: Linux-4.15.0-142-generic-x86_64-with-glibc2.23 64 Bits
Graphics card: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.82.00
Blender Version
Broken: version: 2.93.6, branch: master, commit date: 2021-11-16 14:54, hash: rBc842a90e2fa1; also broken on 3.0 beta 'd8fd575af9cd'
Worked: None
Short description of error
Shader mixing problem when passing Hair Info 'Intercept' value through ColorRamp
When the 1st shader input to a Mix Shader node is a Hair Shader and the mix factor value is a "Pure White" value output by a ColorRamp node (using the Intercept value from a Hair Info node as the input factor), the output of the Mix shader is Black.
If the same Hair shader is connected to both Mix Shader inputs then the problem does not occur - but if two separate Hair shader nodes with identical settings are connected to the Mix shader then the problem occurs.
Using Cardinal on the ColorRamp node gives a banding effect when the righthand color stop is set to off-white.
If you have the Hair Shader connected to the Mix Shader's 2nd input, the problem does not occur.
Exact steps for others to reproduce the error
- Open attached blend file
- Set the 3D Viewport shading to Rendered.
