Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualMausGames

Posted 27 December 2012 - 05:23 PM

Usually the transformation is calculated outside of the shader, because the shader has to do it repeatedly for each vertex and you have a much better control of the calculations this way. You can also optimize it (e.g. with SSE) for max performance and so the CPU and GPU work perfectly side by side.

There is a nice article from Jari Komppa about this topic: http://sol.gfxile.net/instancing.html

Best regards
- Martin

#1MausGames

Posted 27 December 2012 - 05:17 PM

Usually the transformation is calculated outside of the shader, because the shader has to do it repeatedly for each vertex and you have a much better control of the calculations this way. You can also optimize it (e.g. with SSE-Intrinsics) for max performance and so the CPU and GPU work perfectly side by side.

 

There is a nice article from Jari Komppa about this topic: http://sol.gfxile.net/instancing.html

 

Best regards

- Martin


PARTNERS