- Home /
Question by
Noxury · Apr 10, 2020 at 04:04 PM ·
shaderlightingmobilereflection
How to fake light reflections on wet ground?
I am working on a mobile car game and need to minimize performance overhead. Therefore the only light source should be the sun. The vehicles frontlights are composed of a sprite and an lightcone mesh. I notice on older games they put reflections that look like this:
video: https://youtu.be/14ER5FLjsAE?t=313
I always wondered how they are composed. I would assume the reflections are sprite textures or meshes and a custom-shader make those reflections appear "under" the surface (no Z-Depth, but only for the ground as they will be seen through everything so queue will be important). But how do i write a shader like this?
I have looked on unitys builtin reflective shaders but this kind of reflection is something else. Thanks in advance.
carlightreflectionfake.jpg
(53.4 kB)
Comment