Creating my first Shader

ToyenToyen Posts: 1,888
edited December 1969 in Technical Help (nuts n bolts)

Hey everyone! So today I decided I´d try to create my first shader so I followed this tutorial - http://www.daz3d.com/forums/discussion/12429/

And I got almost to the end, I´m pretty happy I got that far however, when I click on "Compile Shader" I get an error and I have no idea where to start searching for the fix.

This is what I´m getting:


Tutorial.sl:58: ERROR: syntax error

Idotn = (normalize(L).___tV5;

^
Tutorial.sl:58: WARNING: compilation resumes here

Idotn = (normalize(L).___tV5;

^
Tutorial.sl' aborted due to errors: 1 errors, 1 warnings.

If anybody knows please let me know! thank you : )

Comments

  • mrposermrposer Posts: 1,130
    edited December 1969

    Maybe you need another closed parentheses.... from just looking at the formula... I know nothing about creating shaders.

  • siocsioc Posts: 299
    edited December 1969

    MrPoser said:
    Maybe you need another closed parentheses.... from just looking at the formula... I know nothing about creating shaders.

    +1

  • ToyenToyen Posts: 1,888
    edited December 1969

    What are closed parentheses? : )

  • mrposermrposer Posts: 1,130
    edited December 1969

    try this
    Idotn = (normalize(L).___tV5);

  • ToyenToyen Posts: 1,888
    edited December 1969

    If you mean to put this into surface code then its already there.

Sign In or Register to comment.