Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How To Make Sprites Become Affected By Lighting! - A Tutorial for Baldi's Basics

Updates

Small Update 2y
  • Addition Updated The Tutorial And Added A New Step
So, have you ever wanted to make it so sprites (such as characters) adjust their brightness depending on how bright an area is (like in the BB+ trailer) instead of staying at a constant brightness? Well, in this tutorial, I will show you how you can do it, which is actually pretty easy!

Step 1. Create a new material (Create -> Material) and name call it SpriteLighting.

Step 2. Go to your SpriteLighting material and change the shader under the material's name to Sprites/Diffuse.


Step 3. Find a sprite in your scene (such as TutorBaldi's sprite) and apply the SpriteLighting material to the sprite.


Step 4. Go to Window -> Rendering -> Lighting Settings and set the source under Environment Lighting to Color and the Ambient Color to white (HEX #FFFFFF).

Step 5. Try changing the ambient color to be darker and see if the sprite's brightness changes. If it does, then that means it worked!

Step 6. If working, apply the SpriteLighting material to every sprite you want to be affected in the scene. This can take some time, depending on how many sprites you want to apply it to.

Anyways, I hope this tutorial helps you, and if you decide to use it for your mod, make sure to give credit! The sprites should also be affected by the color of the environment (red, yellow, etc). If you need help with the tutorial, tell me in the comments, and I'll try to help you!