XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Passing/Retrieving variables to Shader

Last post 13/06/2008 0:11 by jwatte. 1 replies.
  • 12/06/2008 23:54

    Passing/Retrieving variables to Shader

    Hi guys,
    I am just wondering, if I have non 3x3 matrix in my shader, i.e.

    float3x2 myMatrix;

    How do I pass the value from XNA? I dont know if I can use Matrix since it is 4x4..

    Furthermore, how about another variable types, like:

    int2 myInt2;
    bool3 myBool3;

    Thanks a lot!

     

    regards,
    tep

  • 13/06/2008 0:11 In reply to

    Re: Passing/Retrieving variables to Shader

    I believe you can pass those as float[, int[ and bool[.
    Jon Watte, Direct3D MVP
    Tweets, occasionally
    kW X-port 3ds Max .X exporter
    kW Animation source code
Page 1 of 1 (2 items) Previous Next