PDA

View Full Version : constant declaration in ARB_FRAGMENT_PROGRAM



inet
09-06-2005, 01:17 AM
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.

Humus
09-06-2005, 07:41 PM
Yes you can.