Hey,
I'm trying to figure this out. Unfortunatly there is no command for this in DarkGDK.
So, here is what I have so far:
// create the array
D3DXVECTOR4 VectorArray[5];
// get pointer to the DarkGDK object first
sObject * pObj = dbGetObject( ObjectID );
// get the handle to the parameter
D3DXHANDLE hParam = pObj->pFrame->pMesh->pVertexShaderEffect->m_pEffect->GetParameterByName( NULL, "fVectorArray" );
// set array as effect parameter
pObj->pFrame->pMesh->pVertexShaderEffect->m_pEffect->SetVectorArray( hParam, VectorArray, 5 );
I thought that would do it, but I get an unhandled exception pointing to the line with
'D3DXHANDLE hParam = (...)'!
What could be wrong here?
I don't use DirectX stuff often so I'm stuck right now...
Has anybody experience with this?
Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.