
A simple god ray/light shaft shader with two slightly different variants aimed to create a realistic look but can easily be used for all sorts of genres.The package is created in URP but porting it to other render pipelines should be relatively straight forward, as it just uses the new RenderGraph API.It works straigh out of the box with any game using a directional light source. It's build to handle two light sources at the same time in case you are using a day and night cycle system and will sync autoamtically with the light sources.Supports a day and night cycle system and is implemented as a fullscreen render pass before post processing effects. The light strength and direction automatically syncs with the set light sources but only one is neede, the otherone will get ignored in case its set to null. The details are customizable in the inspector. The package contains two different renderer features using RenderGraph, both having a slightly different approach to get a different but believable result and are easily interchangeable by simply switching the added renderer feature. The shaders will render both light sources in a single shader pass and merge the result with the camera color texture. It is possible to render the godrays at lower resolutions (50%, 25%, 12.5%, and 6.25% of the screen resolution) to improve performance when necessary. Rendering at 50% or 25% resolution typically has little to no visual impact.