Simple spells. All graphics assets are placeholders currently but you can see tehnical implementation. Everything in map is created in game map editor.
In the end graphics theme will be much different from current placeholder stuff - im going for m…
Thanks Oscar. I didn't need all the much precision for my normals so it wasn't a big deal in my case. I knew there was a bit more precision in there from the 0.8 to 0.99 but I liked 0.8 and 2.5 because they are short numbers :)
A couple questions.
1) I am assuming the unsigned values are floats?
2) Are you dealing with numbers from 0 to 1? Otherwise you need to normalize your range with a constant.
For unsigned remove the +1 and *0.5 (which moves negative values into the 0 to 0.5 range
Note: Haven't tested this just redid the math for unsigned
inline float PackFloat16bit2(float2 src)
{
//0.8 resolves the 1 case overlap you lose some precision though
return floor((src.x) * 100.0f)+((src.y)*0.8f);
}