Game
Explorium
11 years ago

Lighting Update


Explorium now has much better performance due to updates to the lighting engine. Lighting masks are only updated when needed. The game now does 60fps when fully zoomed out. The lighting is still wonderful color lighting with attenuation.

More in-depth explanation of lighting as it is now:

  1. When a block is changed, its respective chunk’s lightmaps are added to a list to be updated.

  2. A chunk lighting update essentially draws to two masks. One is the source mask, which is a black square with single pixels of light where light sources are. The other is a blocking mask, which is a black and white mask where black is empty and white is a block.

  3. Every step the on-screen chunks’ lightmasks are drawn onto two final masks; again source and blocking. These final masks are fitted to the screen in block sizes, so every pixel is a single block.

  4. The two final masks are used in a pixel shader that spreads the light, reading the blocking and source masks. The shader draws onto a final mask, and this spreading process is repeated 8 times to get maximum spread.

  5. The final spread mask is stretched onto the screen on top of the unlit world.



3 comments

Loading...

Next up

Belated "Release"

Rundash is up and ready to play! Rundash is an online casual racing platformer where you compete with other players to get the best time in an endless stream of random levels.

Play now here: https://gamejolt.com/games/rundash/511953

New Trees Added new tree variations.

Structure Placement Structures, such as trees, can now be place during terrain generation across chunk boundries properly.

Smile! Here, take some happy pills! ✨💊 #Blender #3DModelling #3DArt Buy me a Ko-fi: https://ko-fi.com/barbarafb_

Been working lately on lots of 'behind-the-scenes' boring stuff that no one really cares about, so here’s a guy playing the sax for some reason.

#screenshotsaturday

Enemies can also suddenly spawn through Realm Rifts. These Rift Spawns are going to be stronger than the ones wandering around. TBD on the enemies... #screenshotsaturday #godstear #madewithunity

"Our work is never over" they said.

Werehog transformation process. #sonicunleashed

Hi everyone! I started to create some environment props for my new video game, here is a cozy house in the forest. I'm planning to switch from Unity to Unreal... Let's see what new challenges I have to face. Made in Blender and Substance Painter.