unearthing this topic!
Please could someone give me a hand.
I started using this shader in my terrain, but I can not add more than 3 lights dynamically in my game.
If I exceed this number, additional lights has no effect and sunlight to.
In an excerpt from the script I spotted the following:
float4 Pos : POSITION;
float4 Color : COLOR0;
float3 TexFog : TEXCOORD0;
float3 PosView : TEXCOORD1;
float3 Light1 : TEXCOORD2;
float3 Light2 : TEXCOORD3;
float3 Light3 : TEXCOORD4;
float3 Diffuse1 : TEXCOORD5;
float3 Diffuse2 : TEXCOORD6;
float3 Diffuse3 : TEXCOORD7;
Intuitively I tried to add another TEXCOORDs for add more LIGHT, but no work.
It seems to me that I can not exceed this value [7], unfortunately I do not understand about shaders.
That the way I could use for more lights in my game using this shader?