Search Unity

Are the sprite editor secondary textures accessible in standard shader (not HDRP/LWRP)

Discussion in '2D' started by rensvdwiel, Jul 11, 2019.

  1. rensvdwiel

    rensvdwiel

    Joined:
    Jan 30, 2019
    Posts:
    1
    Hey all,

    I saw the new feature Sprite Editor: Secondary Textures (2019.3 alpha)
    And I know these are used in the new 2D light feature in LWRP.

    Is it possible to access the secondary textures from the sprite editor within my shader code in the old renderer (not HDRP/LWRP)?

    I'm still using the old renderer since I want to use a combination of 3D and 2D, with certain pixel shaders, etc. And already have most of my shaders and lighting specifically setup for the older renderer.

    Being able to use the secondary textures for normal mapping and light mapping will speed up my process. Not having to add separate texture slots and values to the shader settings for each object will help a lot.

    Hope someone knows anything about it. Else I'll have to figure out a smart way to do this with prefabs and code. But I would really like to be able to add objects fast, and only having to drag one sprite into the sprite texture field to set all the textures at once.

    Thanks!