Results 1 to 2 of 2

Thread: example code for multiple node outputs

  1. #1
    Devastatin'
    Join Date
    Jun 2004
    Location
    London
    Posts
    140

    example code for multiple node outputs

    can anyone put here some example code for a node with multiple outputs?

    I can create the outputs on the node, but when it comes to passing the values from the shader code to the outputs I have no clue

    the example specular_node.c only uses one output

    outputfuncs->setValue( Value, final_color );

    I can't work out from this or the sdk how to set the value of more than one

  2. #2
    creacon
    Join Date
    Nov 2005
    Location
    Belgium
    Posts
    1,299
    If I recall correctly.

    When you create the output, store the NodeOutputID somewhere.

    NodeOutputID test = ......
    test->setValue( Value, final_color );

    But I could be wrong.

    creacon

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •