Question by
ZeroByter · Jul 31, 2018 at 02:30 PM ·
camerashader2d-platformerdepthreplacement shader
Camera replacement shader not working
I am making a 2D platform game, and the level is rendered with a bunch of individual SpriteRenderers.
In order to add a sense of depth, I want to make a secondary camera with a bigger orthographic size which will only render the level SpriteRenderers and also render them in a color darker than they actually, I guess by using a shader.
Here is what I have so far: Here is what I am try to make it look like
This is my camera code: pastebin
This is my replacement shader, which is just the default Unity unlit shader with a different default color (currently red for easy debugging): pastebin
expected.png
(18.2 kB)
Comment