Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    25
    _ShapeLightTexture0 Doesnt seem to work at all for me.
     
  2. EyeDev44

    EyeDev44

    Joined:
    Apr 8, 2017
    Posts:
    114
    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:
    28
    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,423
    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:
    114
    Broken. Is there a way to distort 2D background behind material shader?
     
    EvOne likes this.
  7. EyeDev44

    EyeDev44

    Joined:
    Apr 8, 2017
    Posts:
    114
  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:
    93
    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
     
unityunity