remove normalize call in derived mesh GetNormal, its not done anywhere else.

This commit is contained in:
2011-04-27 04:57:57 +00:00
parent 1860c0c565
commit ee2ddfc58a
3 changed files with 3 additions and 8 deletions

View File

@@ -424,14 +424,14 @@ MINLINE float normalize_v3(float n[3])
return normalize_v3_v3(n, n);
}
MINLINE void normal_short_to_float_v3(float *out, const short *in)
MINLINE void normal_short_to_float_v3(float out[3], const short in[3])
{
out[0] = in[0]*(1.0f/32767.0f);
out[1] = in[1]*(1.0f/32767.0f);
out[2] = in[2]*(1.0f/32767.0f);
}
MINLINE void normal_float_to_short_v3(short *out, const float *in)
MINLINE void normal_float_to_short_v3(short out[3], const float in[3])
{
out[0] = (short)(in[0]*32767.0f);
out[1] = (short)(in[1]*32767.0f);