Using Cookies to Create Realistic Lighting
Before doing this, drag and drop your cookie into unity. Then create a Spotlight.
In the first step select a cookie and change the texture type to cookie and change the light type to spotlight. Then We need to adjust the Alpha Source to “From Grey Scale”, Also check Alpha is Transparency then hit apply button.
Note: We set light type, according to the type of light we create early.
Now Select the spotlight, drag and drop the cookie to inspector <SpotLight<Emission<Cookie, then hit fix.
Let's see the result of the spotlight.
The cookie on Point light looks so great. Follow all the steps, and check Fixed Edge Seams and hit apply button. then select the point light, drag and drop the cookie to the cookie field on the inspector, and hit the fix button.
Let's see the result.
See you in the next article.