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

Belated "Release"

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

New Trees Added new tree variations.

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

Here's a peaceful little forest scene for this #screenshotsaturday, from the beginning of the game.

One of the most critical update for Sunblaze demo. Now you are able to pet a cat! Finally!

Spaaaace~

These are background sprites I've created for a game I'm working on at school ^w^ Click on the post to see how the sprites connect. You won't regret it! (personally, I think it's pretty heheh)

Drawn in Piskel using my mouse. Whaddya think?

Cash Banooca

Who's is this little cutey👸 here? Thanks🙏 for a gorgeous fanart @WheNa! Feel free to share your arts, screenshots, or videos with #playzelter or #zelter hashtags! #pixelart #animating #unity3d #animated #indiegames #unrealengine #animate #conceptart

Got some fun collectibles in our game, Path of Kami!