Game
Explorium
9 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.

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

We made a lot of improvements on the Freezing Plains visual. Things like pine trees, tiny bushes, some rocks, and others game props!

#IndieGame | #IndieDev | #GameDev | #PixelArt | #WaifuQuest | #WifeQuest | #screenshotsaturday

I-Buki

Mio-Da!

Ibuki Mioda!

Back in my art school days I used to ride the 710 COPSA line from Parque Del Plata to Montevideo almost everyday. This is the Marcopolo Viaggio G4 Mercedes Benz model from the late 80s, one of the older bus models that was running on the line.

The Darkside Detective: A Fumble in the Dark is out TODAY! 🖱️Advanced pointing, clicking action 🖨️Very funny words! Loads of them! 👻6 sarcastic, spectral cases to solve

a drawing I did because I was bored😪. But I love how it turned out.😊

Made my first ever animation.