- Home /
Black And White To Colour Game Environment?
Hey Guys,
I had this idea for a game where the game start's off in black and white and slowly as the character progresses colour spreads out in a circle around the player. This is my concept: https://imgur.com/KbCrnt8
I'd also like it so NPC's appear as shades in the dark, but in the colour they turn into people.
I'm not sure how to go about coding this, can anyone give me some assistance?
Answer by hexagonius · Sep 19, 2017 at 04:46 PM
I'm no shader guy so I don't know how you would implement this, but I think it could work something like this:
You create a black texture like a depth texture you fill with white from the center. The overall black and white effect could be a postprocessing effect that takes the character's offset from the center into account while looking into that texture and desaturates all but the white pixels. The NPCs would need a shader that reads the same texture and decide on what to show depending on the white.
The texture of course would need to be large enough to accommodate for the character being farthest off center in any direction and still overlapping the while screen.
Oh Dear,
I'm terrible at shaders :( When i get some free time I'll try out your suggestion, thanks for the assistance :D
Your answer
![](https://koobas.hobune.stream/wayback/20220612135203im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Renderer on object disabled after level reload 1 Answer
Project path settings C# 1 Answer