Sample Shader

This function lets you sample a color source, such as an image or shader, at any point to determine a color value. The following image shows an example of this. There, three Base Noise Nodes configured with different Start values are combined into one color that is sampled by the Sample Shader Node. To vary the sampling position, the Ratio Vector of a linear distribution is used as the UVW coordinate on the Sample Shader.


In this example, the Ratio Vector of a distribution controls the sample position at which a colored noise structure is to be output.
Here you can see the result of the above setup. The linearly placed cubes are assigned random colors.