Gamasutra is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Gamasutra: The Art & Business of Making Gamesspacer
View All     RSS
October 19, 2021
arrowPress Releases
If you enjoy reading this site, you might also want to check out these UBM Tech sites:


 

How to create GodRays in Unity URP

by Antoine Rogliano on 09/02/21 11:25:00 am   Featured Blogs

The following blog post, unless otherwise noted, was written by a member of Gamasutra’s community.
The thoughts and opinions expressed are those of the writer and not Gamasutra or its parent company.

 

Before we start, If you're curious about our ongoing project, it is live on Kickstarter and you can read all the informations here : https://www.kickstarter.com/projects/dreamirl/jurassic-snap?ref=creator_nav

You can’t create reals Volumetrics Light/God Rays in URP, I tried to workaround, and made these fake volumetric rays.

Start by creating your Material from a Particle Texture, let the Color and the Alpha to White be cause we will change them in the Particle System. Put it in Additive. You can find this Material in Universal Render Pipeline/Particles/Unlit.

Plug in the Material in the « Renderer » section of the Particle System to work asap in the best conditions.

Give him a 3D Start Rotation of 360 to to make them spawn with a random Rotation. You can also put your Render Alignment to « View » but I prefer that one. You can keep the default Start Lifetime of 5 but do not hesitate do change it.

Time to stretch it, change the 3D Start Size to give him a Ray look :

You can now choose your Color, for me it is a light Ocre. You can also play with the Alpha to Override the Opacity of your ray. That’s why our texture is Black and White, so you can change the Color here.

Time to choose a Shape, a Box should do the job. Tick the Emission and increase the Rate to make them pop the speed you want.

We definitely want our effect to fade-in and out. To do so, play with Color Over Time by adding a Ramp. The alpha might be like this, from 0 to 255.

GodRays moves because they are passing through vegetation, add a Noise and play with Frequency and Strength. You can go deeper is this Node but this is enough to get your Effect.

Now it’s time to custom your System by playing with all the Sliders. Test them all, try a different texture not adding more Components.

The Tutorial in Video : 

https://www.reddit.com/r/Unity3D/comments/pfvnz6/how_to_create_godrays_in_unity_urp/

Consider give us a follow on Twitter, we are used to share our work in progress and blog posts like this one.

Specific to the game and Unity: https://twitter.com/JurassicSnap

The Studio in general: https://twitter.com/DreamirlGames

Thank you for reading!

Romain, Dreamirl.


Related Jobs

Sucker Punch Productions
Sucker Punch Productions — Bellevue, Washington, United States
[10.18.21]

Producer
www.handy-games.com GmbH
www.handy-games.com GmbH — Giebelstadt, Germany
[10.15.21]

Product Marketing Manager (w/m/d)
Square Enix Co., Ltd.
Square Enix Co., Ltd. — Tokyo, Japan
[10.14.21]

Experienced Game Developer
Carnegie Mellon University
Carnegie Mellon University — Pittsburgh, Pennsylvania, United States
[10.13.21]

ETC Teaching Faculty





Loading Comments

loader image