Constant declaration in ARB_FRAGMENT_PROGRAM

Hi, all,

For ARB_FRAGMENT_PROGRAM, must I declare a constant vector like
PARAM vec1 = {0.0,0.0,0.0,0.0} at the beginning of the program?

Can I use constant vector without explicit declaration like this?
ADD temp, temp, {1.0, 0.0, 0.0, 0.0}

inet.

Yes you can.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.