Multi Texture Shader

I’ve been trying to pass multiple textures into my shader, but I get a NullReferenceException on both texNormal and texColor.

Shader Code:
http://pastebin.com/255gYfck

And the code used to set the variables:
http://pastebin.com/yHcSdZiT

I’ve figured out the problem,
If your path to the return in the pixel shader doesn’t use those textures, it won’t include them in the compile it seems.
Now everything’s working :smiley: