variable length parameters

Help
hallb4
2007-04-13
2013-04-25
  • hallb4
    hallb4
    2007-04-13

    I am trying to get an array into my shader that contains a number of points.  The number of points can change from one object to another.  Similar to the polygon parameter "p".

    I would like to avoid parsing a string of a file but if I have to I will.  Any suggestions? and thanks

     
    • Dao Hung Huynh
      Dao Hung Huynh
      2007-04-14

      Hi,
      A way to do is to define a vertice class primitive variable with the primitive geometries you want to pass the values to your shader.
      And then you declare the shader parameter with the same name as your primitve variable

      Cheers

       
    • hallb4
      hallb4
      2007-04-14

      Ill try that thanks!