rifter1818
Well-known member
Stopped paying attention changed nothing then they worked... Odd but not the point.
My Question is this How do i pass 2 positions and 2 normals to my Vertex Shader in an effect,im trying to Create a tweening EFFECT.(just to start)
lets say i have my vertex data in streams 0 and 1, and for this example they are PositionNormalColor, and i want to pass 2 of each Variable (position,normal and color) (one from each stream) to my effect. How do i do it?
VertexDecleration = New vertexDeclaration(device,new vertexelements(){new vertexelement(0,0,Float3,Position,0),new vertexelement(1,0,float3,Position,0),........?
then in my effect
void VS(in float3 Pos1 : POSITION,
in float3 Pos2 : POSITION,........
or am i way off track here?
My Question is this How do i pass 2 positions and 2 normals to my Vertex Shader in an effect,im trying to Create a tweening EFFECT.(just to start)
lets say i have my vertex data in streams 0 and 1, and for this example they are PositionNormalColor, and i want to pass 2 of each Variable (position,normal and color) (one from each stream) to my effect. How do i do it?
VertexDecleration = New vertexDeclaration(device,new vertexelements(){new vertexelement(0,0,Float3,Position,0),new vertexelement(1,0,float3,Position,0),........?
then in my effect
void VS(in float3 Pos1 : POSITION,
in float3 Pos2 : POSITION,........
or am i way off track here?