Search Unity

Resolved Will There Be A Detail Texture Node

Discussion in 'Shader Graph' started by Tzan, Apr 10, 2019.

  1. Tzan

    Tzan

    Joined:
    Apr 5, 2009
    Posts:
    736
    I dont see one at the moment.

    I use vertex colors with a detail texture.
    Unity has consistently decided to not include vertex color in its shaders, but has added it to the Graph.
    But has decided to exclude a detail texture.

    Really ?

    Any attempt I make at making a custom node could not possibly be as efficient as what Unity could do.

    Thanks
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,336
    The "Detail Albedo x2" from the Standard shader can be replicated with this:
    upload_2019-4-10_14-36-20.png

    You don't need the Lerp node and second texture sampler if you don't need the mask.

    You could also try using the Blend node set to Overlay which the above "x2 mul" technique was intended as a cheap approximation of, though the "real thing" is only very slightly more expensive these days.
     

    Attached Files:

  3. Tzan

    Tzan

    Joined:
    Apr 5, 2009
    Posts:
    736
    Yeah I was way off, doing all sorts of math.
    Thanks!