I create a composite material, put it on a plane.
Composite material consists of 2 materials controlled by a gradient. In the live viewer it shows fine, but when I render, I only see one layer.
You can see that very clear in the screenshot.
A bug maybe? Version is the latest stable 2019.1.5-R2