Basically what I am trying to do is let my shader have access to an array of vectors.
So I define the array inside the shader:
float3 VectorArray[20];
Now during runtime, I want to fill this array with data. I tried the following:
cTV_3DVECTOR *vectors[20];
for(int i=0; i<20; i++)
vectors[i] = new cTV_3DVECTOR(12, 34, 56);
MyShader->SetEffectParamVectorArray3("VectorArray", vectors[0], 20);
This compiles and all, but during runtime, nothing happens. It seems like the shader can't access the data, thus I guess it doesn't get filled correctly. Maybe I am not using the correct SetEffectParam method?
I hope someone can help
