Color For Background Shader Not Working

I just started to use the OSL. Unfortunately I am stuck right at the beginning.

I have created a script with a color input and output. Basically I expect that the input color is routed through to the output node (highlighted in green) and is set as the background color. But when I render the background color is taken from the background node. I just duplicated it for the sake of showing it in the screenshot. So instead of a white background I get a gray background. Any thoughts on what I am doing wrong?

Blend file: osl_color_background.blend (474 KB)



Hello!

You just have to turn on the “Open Shading Language” in the render settings! (checkbox near the top)

Thanks. Did it, but it crashes when using CPU compute. When I use GPU compute it shows the same gray render result.

[EDIT] Also tested on another computer. Crashes as well although the script is correctly compiled. Any thoughts?