|
1 | | -# FakeVolumetricLights |
| 1 | + |
| 2 | + |
| 3 | +# Fake Volumetric Light Shader |
| 4 | + |
2 | 5 |
|
| 6 | +A simple fake volumetric light shader effect. It was created for Serious Point Games as part of my studies in shader development. |
| 7 | +It is meant to be for Unity URP (6000.0.27f1) but it can work in some older unity versions (like 2022) and other pipelines (like Built-In). |
| 8 | + |
| 9 | +This method of using a material shader to fake volumetric lighting is often used to save on computer resources & computational power, |
| 10 | +to be able to run on lower end devices better, or sometimes it can be due to the designer's artistic direction for the game. |
| 11 | + |
| 12 | +You can refer to the effect's documentation for more info (should be in the repo and its release as a PDF file). |
| 13 | + |
| 14 | +## Features |
| 15 | +- Be able to add a noise texture to the light, using a custom noise texture or a built-in simple noise texture |
| 16 | +- Replicates the look of a volumetric light, specialized specifically for spot lights |
| 17 | +- The color of the light can be customized |
| 18 | + |
| 19 | +## Example[s] |
| 20 | + |
| 21 | +The Look of the shader effect in the dark |
| 22 | + |
| 23 | +## Installation |
| 24 | +1. Clone repo or download the folder and load it into an unity project. |
| 25 | +2. Create a new material from the shadergraph, or use the provided one if you want to. |
| 26 | +3. Drag the material onto the mesh object/gameobject that you want to apply the effect on, or go to the object’s inspector panel |
| 27 | +and change its material to the material with the volumetric spotlight shader. |
| 28 | +4. Optionally, you can use one of the prefabs to have a volumetric spotlight by going to the prefab folder and drag one of them into the scene. |
| 29 | + |
| 30 | +## Credits/Assets used |
| 31 | +Some of the shadergraph code is based on MrTriPie’s Unity Volumetric Light Shader Graph |
| 32 | +for LWRP Youtube Video [-Youtube Video Link-](https://www.youtube.com/watch?v=rihJzWq7sE4). |
| 33 | +<br> |
| 34 | +<br> |
| 35 | +The provided volumetric light shaft mesh is also from MrTriPie's Unity Volumetric Light |
| 36 | +Shader Graph for LWRP Youtube Video tutorial through its provided download link. |
0 commit comments