I've been converting a lot of the scene structure into C# with Managed DirectX.
I was wondering if someone could help me understand what's going on in the SetView method of the Camera class on page 517.
I understand what the idea is, get the matrix of the target node, sit somewhere behind it and set that as the current view matrix, but the source code is bugging me:
vec4 at = g_Forward4 * -10.0f;
what is this line doing? where is that global variable defined, I cannot find it.
then there's a call to VSetTransform(&mat); but I don't see this function defined anywhere.
Anyway, great book, thanks in advance for any help!
I was wondering if someone could help me understand what's going on in the SetView method of the Camera class on page 517.
I understand what the idea is, get the matrix of the target node, sit somewhere behind it and set that as the current view matrix, but the source code is bugging me:
vec4 at = g_Forward4 * -10.0f;
what is this line doing? where is that global variable defined, I cannot find it.
then there's a call to VSetTransform(&mat); but I don't see this function defined anywhere.
Anyway, great book, thanks in advance for any help!