Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Custom Expression in HDRP SG, Sample Texture

Discussion in 'Graphics Experimental Previews' started by DuvE, Oct 19, 2019.

  1. DuvE

    DuvE

    Joined:
    May 22, 2016
    Posts:
    168
    I'm trying to sample a texture in Custom Expression in HDRP SG. I'm getting this error "sampler parameter must come from a literal expression" and don't really know how to fix it. I can't just use Tex2D function, because it's impossible to create and Input Sampler2D variable, only Texture2D.

    http://prntscr.com/pllc52