Game
Explorium
10 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

New Trees Added new tree variations.

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

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

Belated "Release"

What do you think guys in my robot?Just a beginner in 3d modeling..

My instagram https://www.instagram.com/rojhonbb/

Sometimes the suction cup get sticky. Small animation I made in Blender after doing my tutorial on picking up/dropping objects in animations. Crate model by jQueary (https://sketchfab.com/3d-models/game-ready-sci-fi-crate-d98deca6…).

Update 2.627

New challenges & new effects!

Horror WIP A track that will be featured in a future horror game soundtrack! Stay tuned!

Likes appreciated ✌️

#gamedev #composer #horrorgame #indiegame #IndieGameDev #soundtrack

Alone Together....