Jump to content

  • Log In with Google      Sign In   
  • Create Account


Posted 29 January 2013 - 12:42 PM

Thanks, I am just trying to find the most efficient way to have different pixel shaders used by the same type of mesh, but colored differently.  For example, I would like square and triangle models in the vertex buffer, and for the pixel shaders to act differently based on instance data....


Is there a good way to accomplish this?


Posted 29 January 2013 - 12:41 PM

Thanks, now all I have to do is find a better way of assigning vertices to the Vertexbuffer, just use pSysMem = mesh.GetVertices().