Skip to content

Commit df17bdd

Browse files
authored
Update README.md
1 parent 4431615 commit df17bdd

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
1-
# FakeVolumetricLights
1+
![image](https://github.com/user-attachments/assets/ab54a4f3-4ea6-492b-bec8-e158a915a17c)
2+
3+
# Fake Volumetric Light Shader
4+
![Unity Version](https://img.shields.io/badge/Unity-6000.0.27%27LTS%2B-blueviolet?logo=unity)
25

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+
![image](https://github.com/user-attachments/assets/9ab5895e-8e63-4a1d-bf29-5d48652cc655)
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

Comments
 (0)