Hi there,
I am currently trying to convert my “2D Global Illumination Effect” to URP.
My Game is a 2D Sandbox Game like Terraria / Starbound with a currently quite simple Lighting setup
I use an old Asset i found on Github that is using 2 Cameras, wich one renders the scene and the other the Lighting. The lighting Camera outputs to a Render Texture, Blurs the whole thing and merges it with the Main Camera.
Here is the Asset i am Using: GitHub - prime31/SpriteLightKit: Blended lighting system for Unity that works with standard Sprites
The Result looks like this
I am somewhat happy with how it looks, but i want to convert all of this to URP and use it together with Unity’s 2D Lights, as they are quite good now. However i am struggeling a bit.
So far i made a Shader Graph that Samples the MainTex and with the Render Texture i am using a GausianBlur Sub Shader (whitch i also don’t quite get to work). The Render Texture also get Updated every Frame from a Scrip on the Camera. Then I use a Blend node betwene both Textures and plug it into the output and i can see how in the Material preview i get my Processed image out. i took the example from Unity for a full screen Blit Rendering Feature but it just does nothing at all.
Here are some relevan images i think: