   HLSL Problem (again :( )
  Hi guys,This time around I'm making a simple scene lighting application.The scene is rendering ok,but before i can add any lighting i noticed something.First hava a look at my small shader.txtfloat4 c = {0.0f,1.0f,0.0f,0.0f};struct Input{vector position:POSITION0;};struct Output{vector position:POSITION0;float4 color:COLOR0;};Output VSMain(Input inp){ Output op;  /*Shader code*/op.color = c;return op;}I dont why but it always rendering the scene with black color,no matter what value I initialize c with.Although i overcame this by declaring c inside the main function like thisOutput VSMain(Input inp){ Output op;float4 c = {0.0f,1.0f,0.0f,0.0f};/*Shader code*/op.color = c;   /*Even writing something like this op.color.x = 0.5f;    op.color.y = 0.0f;    op.color.z = 1.0f;    made it work  */return op;}Doing this renders the scene perfectly.Now what i don't understand is ,that i have a different application with a shader wherein i have declared a color vector outside main and changing the value of that vector changes the color the scene is rendered in that app.So why is this shader giving a different result?I tried tinkering with my main appication code but it seems the problem lies in the shader only.thanks for reading!   
  AWWWWWWW DAMN DAMN DAMN DAMN!I forgot to put the device->SetDefaults() line in my  main code.Can't believe how ignorant I'm becoming.Sorry again gamedev :(   