Home Unity

Using Different shaders for different LOD for assets

polycounter lvl 2
Offline / Send Message
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

  • RyanB
    Options
    Offline / Send Message
    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
    Options
    Offline / Send Message
    HelionDark polycounter lvl 2
    Just read about mip-mapping, i think will stick with one good texture and use mip-maping. tnx
Sign In or Register to comment.