I have a shader, that I might add is working perfectly in XNA1.0 that will not compile in 2.0beta.
It tells me it has too many instructions (72), which is more than the maximum for PS2.0 (64). It doesn't tell me which technique is the one using too many. And if I change out all of the pixel shaders to model 3.0 I get a new error, which is:
Resources\Effects\water.fx(185,1): error : C:\Users\Nic\Documents\Visual Studio 2005\Projects\UpgradedGame1\UpgradedGame1\Resources\Effects\water.fx(185): error X4004: program too complex; there are more active values than registers
So is Visual Studio pickier about shaders than VSExpress? Is this possibly a bug? It ran on XNA1.0, so I don't see how this error is valid....though I am new to shaders.
XNA QuickStart Engine |
My site"I'll be whatever I want to do!", Philip J. Fry