DirectX SDK Sample Converting Effects to VB
I'm converting the DirectX SDK sample framework to VB code.
It's going great so far, but i'm getting cought up on converting some lights code.
Assume variable eye is a Vector3 containing camera eye point; and effect is a DirectX effect created from the sdk file 'BasicHLSL_VBNET.fx'
The code in the C# reads as follows...
Vector3 eyePt = Vector3.Normalize(eye); effect.SetValue("g_LightDir", &eyePt,sizeof(Vector3)); |
When i convert this to VB...
Dim eyePtAs Vector3 = Vector3.Normalize(eye) effect.SetValue("g_LightDir", eyePt) |
There's only 1 problem...
The VB managed code of DirectX doesn't allow to set a Vector3 as a effect argument type. It only allows for Boolean, Integer, Single, Vector4, ColorValue, Matrix, String, and BaseTexture.
I hope there's some DirectX guru's out there.

