This is a simple question.
In a ARBvp, I want to use the address register to address some data. The data is in the constant registers (program.env)
This for example doesnt work. GL flags an error because of program.env[A0]:
ADDRESS A0;
TEMP r0;
MUL r0, program.env[A0], r0;
That’s a little weird. Aren’t the constants in an array (or like an array)?
This works fine
PARAM array[4]={program.env[8…11]};
MUL r0, array[A0], r0;
What’s the point of having PARAM array[4]={program.env[8…11]}?