Using Different shaders for different LOD for assets

HelionDark
HelionDark polycounter lvl 2
Is it Generally better to have same shader for all LOD of objects or its more viable to use multiple shaders with different size of texture maps?

Replies

  • Depends.  Different shaders = more drawcalls.  Different shaders also breaks batching.  But if the lower LOD shaders are significantly faster then it could improve performance.  You would need to test and profile it.  I have used this technique on a racing game where I turned off nearly everything, even removing textures, for things in the far distance that were just silhouettes in fog. 

    Different size texture maps is already done through mip-mapping.
  • HelionDark
    HelionDark polycounter lvl 2
    Just read about mip-mapping, i think will stick with one good texture and use mip-maping. tnx

Welcome!

It looks like you're new here. Sign in or register to get started.