Hi,

I want to access d3d_spotlightcone in a shader and wondered why I can't read out the falloff. To test it, I wrote

Code:
float3 d3d_spotlightcone_var;

color.rgb = d3d_spotlightcone_var.rgb;
return color;



The screen turns red and I can change the redness, if I change d3d_spotlightcone.x into the range 0...1; if I change d3d_spotlightcone.y or d3d_spotlightcone.z, nothing happens.

This implies, that only the .x component is accessible via _var and .y and .z components of a vector are always = 0. I doublechecked with e.g. d3d_fogcolor1 and the same observations can be made.