Playing around with shaders and found this
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.
Cameras and quad in 3D perspective
So what I do here is taking a black and white sprite
Untitled Torch Game
2d plattformer fov
Status | In development |
Category | Other |
Author | postosaurus |
Genre | Adventure |
Tags | 2D |
More posts
- Bringing things togetherJul 19, 2022
- Introducing AIJul 12, 2022
- Populate the worldJul 10, 2022
- ShaderinsanityJul 08, 2022
- Flexible Movement, where to go?Jul 06, 2022
- Unitled Torch GameJul 02, 2022
Leave a comment
Log in with itch.io to leave a comment.