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
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Official Experimental 2D Lights and Shader Graph support in Universal RP (previously LWRP)

Discussion in '2D Experimental Preview' started by rustum, May 24, 2019.

  1. Hookkshot

    Hookkshot

    Joined:
    Jan 11, 2013
    Posts:
    27
    _ShapeLightTexture0 Doesnt seem to work at all for me.
     
  2. EyeDev44

    EyeDev44

    Joined:
    Apr 8, 2017
    Posts:
    149
    So, the first half of 2021 is gone. Scene color is still broken.
     
    xpxilom and diesersam like this.
  3. treecki

    treecki

    Joined:
    Feb 6, 2017
    Posts:
    29
    This is going back a while in this thread, sorry to necro an issue. But I've been trying to add alpha cut off to a URP reflection shader, which works similarly to how @cparki3 had his splatter shader working. I create the shader in shader graph, export and copy the generated shader to a new script, and then add the info for stencil stuff. This all works fine with a global 2d light, but when a point 2d light hits it the surface, the stencil breaks (or expands) to include the texture with alpha. @Chris_Chu mentioned this would happen and adding and alpha cut off would fix it. The problem is I have no idea how to add the alpha cut off with the generated code as it looks very different from hand written shader code. Is there a way now to do this in Shader graph or is there anyway to add alpha cut off to the generated code?

    Ex_2.PNG Ex_1.PNG
     
  4. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,517
    Still no some property setter for 2dlight... after whole year..
     
    xpxilom likes this.
  5. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    I have exactly this issue as well. Is there a fix planned for this?
     
  6. EyeDev44

    EyeDev44

    Joined:
    Apr 8, 2017
    Posts:
    149
    Broken. Is there a way to distort 2D background behind material shader?
     
    EvOne likes this.
  7. EyeDev44

    EyeDev44

    Joined:
    Apr 8, 2017
    Posts:
    149
  8. ivan_tbl

    ivan_tbl

    Joined:
    Sep 20, 2017
    Posts:
    5
    Any news regarding this issue?

    I'm trying something quite simple in theory (recoloring a pixel sprite behind a "lens" that the player can drag) and can't get the blending to work properly
     
  9. Mjeno

    Mjeno

    Joined:
    Apr 7, 2016
    Posts:
    5
    We released our game almost a year ago with this volume opacity bug in it. Is there still no fix so we can finally patch it?
     
    dr4 likes this.
  10. dr4

    dr4

    Joined:
    Jan 14, 2015
    Posts:
    106
    still an issue as far as I'm aware, Unity is full of features trade, we get X but lose the ability to use Y, recently got myself trying to decide if I wanted Atlas or shaders as they are to compatible
     
  11. MintFork

    MintFork

    Joined:
    Feb 22, 2015
    Posts:
    17
    Its still issue, and adding additional vertices along the long edge don't work if light is moving. ;_;