2DURP GodRays

A post-processing shader for 2D God Rays.

GitHub Repository

For the full source code and detailed instructions, visit the 2DURP GodRays GitHub Repository.


How to Play the Demo

  • U To hide/unhide UI
  • A and D or Left Arrow and Right Arrow to move.
  • Space to jump.
  • Left Mouse Button (LMB) to attack.
  • Right Mouse Button (RMB) to dash attack.
  • F to dash.

Overview

2DURP GodRays is a powerful shader designed to bring stunning God Rays effects to your 2D scenes in Unity's Universal Render Pipeline (URP). Elevate your game's atmosphere with realistic and dynamic light rays that enhance visual appeal and immersion.

Features

  • Easy integration into any Unity URP 2D project.
  • Highly customizable settings for light exposure, density, and more.
  • Performance options to balance quality and efficiency.
  • Perfect for adding dramatic lighting effects to any scene.

Credits

You’re welcome to use the 2DURP GodRays shader in both personal and commercial projects. Feel free to modify it to suit your needs. If you'd like to acknowledge my work, simply mention "Tanpi" in your project with a link to https://tan-pi.itch.io. While you can integrate this shader into your own creations, please refrain from redistributing it as a standalone asset.

Asset used in DEMO

StatusReleased
CategoryAssets
Rating
Rated 3.0 out of 5 stars
(1 total ratings)
AuthorTanPi

Download

Download
2DURP-GodRays-main.zip 21 kB

Install instructions

For the full source code and detailed instructions, visit the 2DURP GodRays GitHub Repository.

How to Use

  1. Download the files and import them into your Unity project.
  2. Add the GodRays render feature to your 2D Renderer and configure it.
  3. Attach the GodRaysCamera2D script to your main camera.
  4. Create a light source using a simple sprite in the scene.
  5. Add a Global Volume to the scene and apply the God Rays post-processing effect.
  6. Run the scene and enjoy the stunning visuals!

Leave a comment

Log in with itch.io to leave a comment.