Search Unity

Bright reflection off a distant object

Discussion in 'Shaders' started by jefferytitan, Jul 27, 2014.

  1. jefferytitan

    jefferytitan

    Joined:
    Jul 19, 2012
    Posts:
    88
    I'm wondering how to get the effect of a bright reflection off a distant object in sun, such as a mirror or glass. This will happen rarely enough that it could be faked, e.g. script this to occur for certain GameObjects rather than basing it on specular features of materials.

    Firstly the effect itself... would it be similar to a bloom or some kind of lense flare? Something else?

    Secondly the way it responds to movement... like a real reflection I guess the brightness would need a fairly narrow peak that drops off nicely. I'd hope it wouldn't suffer to badly from aliasing effects because the source of the reflection may be at a distance where the source may only cover a few pixels (but the effect would be much larger). Perhaps do a simple occlusion check for distant reflections then render after the main geometry?

    Any thoughts would be appreciated.

    JT