Search Unity

Planar Reflection with alpha

Discussion in 'Shaders' started by UnityLighting, Feb 25, 2017.

  1. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874

    Attached Files:

    Last edited: Feb 25, 2017
  2. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
  3. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    Another usage of this shader for mobile platforms
    Realtime ground reflection + screen drop rain (animated from green screen movie):
    photo_2017-03-01_12-31-20.jpg
     
  4. omr-omr

    omr-omr

    Joined:
    Mar 19, 2017
    Posts:
    2
    Man your plug-in is awesome!!Thanks for making it free...
     
  5. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    Hi
    This is not my plugin.I just added alpha shader for script. I think the original planar reflection script has been wrote by unity own developers ans it's available in unity wiki.
    Improved version is available in asset store from another guy (First post link)
     
  6. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    Normal map added
    Select Mobile->PlanarReflection shader
     

    Attached Files:

    26PM likes this.
  7. Michael11

    Michael11

    Joined:
    Jun 22, 2017
    Posts:
    2
    upload_2017-6-22_19-55-21.png HI,How do you implement Realtime Reflection after baking lightmap?
     
  8. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    Your problem should be from Realtime Reflection script. Shader is already compatible with lightmaps.
    Try different settings on scripts
    It's only works on flat surfaces
     
    Michael11 likes this.
  9. Michael11

    Michael11

    Joined:
    Jun 22, 2017
    Posts:
    2
    Its very sweet of you:)
     
  10. katnyan

    katnyan

    Joined:
    May 12, 2017
    Posts:
    25
    @aliyeredon2 ,

    I have been using your PlanarRealTime reflection script and shader as you described by you in the url below:


    However, the reflections are looking good when viewed in Scene (non-play mode). I have adjusted the Clip plane Offset property to set the reflection on the ground as I like it.

    Now, when I click on Play to view the reflections in Play mode, they all go haywire. I get reflection on on side of the ground and also it is not the same as viewed in non-play mode. In other words, the reflections are completely different when compared to play and non-play mode. Also, the reflections rotate when I rotate the camera to look around.

    Could you please help me on this?

    FYI.. the size of the ground is 175metres and I have a large structure surrounding the ground.
    Clip plan offset is set to 9.5 so that when camera is in middle of the ground, I could see the reflection of the structure on the ground.
     
  11. Emerald_Eel_Entertainment

    Emerald_Eel_Entertainment

    Joined:
    Mar 30, 2016
    Posts:
    120
    Tried checking for this asset on the store but it's been deprecated.
     
  12. vuthang

    vuthang

    Joined:
    Mar 7, 2017
    Posts:
    50
    link store was died. please post here. Thank
     
  13. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    Download link for planar reflection attached to this post

    See the video:
     

    Attached Files:

  14. Alvarden

    Alvarden

    Joined:
    Feb 22, 2019
    Posts:
    61
    Oh, neat, i didn't expect an update in this thread.
    BTW, does this work with the latest version of Unity? Or it only works up to a certain version?
     
  15. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    It is for the built-n pipeline. So should works on every unity version

    I will make URP shaders soon