itch.io is community of indie game creators and players

Devlogs

Playing around with shaders and found this

Untitled Torch Game
A downloadable project

Hello everyone,

Opposed to what I said previously I didn't focus on the entities and game-play but got carried away by a video from Francis Vace on YouTube (View video on Youtube). He created a palette shader where you can easily swap colors and create interesting effects such as a light effect. The input thought is a sprite with only black, white and gray. The shader makes it possible to change these colors and even hide colors if not in the reach of a certain parameter.

Technically you work with two cameras. The main camera which is capturing the scene, a material is set to a quad in 3D space, behind the main camera and the second camera captures what is on this quad, so basically what the camera sees

The twist behind it is, that we can apply an overall shader effect on the quad that affects all of our view without messing around with the actual game objects, but still the shader can reference game objects, with an extra object.

So what I do here is taking a black and white sprite 

Leave a comment