esc
10-30-2003, 01:03 PM
I'm trying to write an ARB_vp/ARB_fp path, but the result registers behave strangely.
Example with unnecessary stuff excluded:
ARB_vp:
ATTRIB test1 = vertex.texcoord[0];
PARAM test2 = { 0,0,1,1 };
# (I change between these two)
MOV result.color, test1; # Example 1
MOV result.color, test2; # Example 2
ARB_fp:
MOV result.color, fragment.color;
Now, whenever I write to ARB_vp result.color with vertex attribues, everything goes well (example 1). But whenever I try to use a PARAM (example 2), I get a static color that changes when I rotate the world (result undefined?).
Does anybody have any idea what the problem might be, I've search the extension spec and search this forum's archive, but it's getting really frustrating...
Any help appreciated.
Chris
Example with unnecessary stuff excluded:
ARB_vp:
ATTRIB test1 = vertex.texcoord[0];
PARAM test2 = { 0,0,1,1 };
# (I change between these two)
MOV result.color, test1; # Example 1
MOV result.color, test2; # Example 2
ARB_fp:
MOV result.color, fragment.color;
Now, whenever I write to ARB_vp result.color with vertex attribues, everything goes well (example 1). But whenever I try to use a PARAM (example 2), I get a static color that changes when I rotate the world (result undefined?).
Does anybody have any idea what the problem might be, I've search the extension spec and search this forum's archive, but it's getting really frustrating...
Any help appreciated.
Chris