haggikrey - 2010-07-06

Hi, I tried to use an user option as mentioned in the docs and check in my shader for pass name:

Rib:

Option "user" "string passname" ["beauty"]

Shader:

    string passName;
    option("user:passname", passName);
    printf("passname %s\n", passName);
    normal nN = normalize(N);

    if (passName == "beauty") 
    {
        }

As soon as I implement the "if(passName…)", the renderer hangs. So I tried a printf() to check wether the variable is set correctly and I only get a (null) as result for passname. Any ideas?