Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Texture Number Limit reactions

Discussion in 'Shaders' started by JBC, Dec 1, 2010.

  1. JBC

    JBC

    Joined:
    Sep 4, 2010
    Posts:
    12
    Using Unity2.6, restricting to ShaderModel 2, all custom shaders:

    Prob: Adding an additional texture into a shader causes the shader to fail and other objects disappear when Spotlights are used.

    I have 3 objects in the scene (for now). 2 on one layer restricted to Direction lights. 1 on a separate layer using 2 spot lights. The 2 are using a multi-pass shader to achieve alpha driven effects (eg. decals). The 1 is using a single pass shader that i just added an additional decal texture onto bringing the number up to 7. When run the 2 on the direction light layer disappear, and the 1 with spots goes dark. The only way to get everything to to show up is to use direction lights which might not go over too well with the art director.

    Would it help if I broke the passes up so that the decals were applied on a second layer? Or have I just reached the texture limit on that shader? (and why is effecting the multi-pass objects?)