   cant compile shader with "normlize" function in sourcecode
  Hello,In my shader sourcecode I use the function normalize().when i load and compile my cgfx shader fileand call cgValidateTechnique then it occurs an error. Technique hasnot been validated.  But when I dont use normalize,the tachnique will be validate. The error occurs not during run-time. Occurs by compiling the shader.What the ... is that ? I use the latest cg version 2.2c-mos   
  Just a shot in the dark, but have you tried normalise() instead?   ;  Are you compiling for a target which supports normalize()?   ;  Hello, now it's working. The code itself has not changed a lot.In the fragment shader main function i had some variable declerationslike float4 dir = float4(0.0,0.0,0.0,0.0); right at the beginning;The I didnt declared the variables , instead i declared them in thecode where i needed them i.e........float4 dir = end - front;.......I think the command is normalize(), with z ?. Correct me if im wrong.I choosed the fp40/vp40 profile. Should support normalize.Anyway i will chekc out the normali(s)e.thanks,c-mos