Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Surface Reflection Shader in Unity 5. Any success anyone?

Discussion in 'General Discussion' started by shekhar331, May 21, 2015.

  1. shekhar331

    shekhar331

    Joined:
    Nov 11, 2014
    Posts:
    10
    While using Unity 4 I used the Surface Reflection shader and it worked like a magic .
    Downloaded from..
    http://wiki.unity3d.com/index.php/SurfaceReflection

    But it is no more working properly in Unity 5... Can Anyone Help or provide with a upgraded shader for Unity 5?
     
  2. 121

    121

    Joined:
    Nov 26, 2009
    Posts:
    199
    You can use reflection probes to do that in Unity 5.
     
    Whippets likes this.
  3. OCASM

    OCASM

    Joined:
    Jan 12, 2011
    Posts:
    326
  4. Kronnect

    Kronnect

    Joined:
    Nov 16, 2014
    Posts:
    2,876
    kode80 looks promising although it doesn't support forward rendering path.
     
  5. macdude2

    macdude2

    Joined:
    Sep 22, 2010
    Posts:
    686
    In unity 5 it would be best to simply use a render texture. You ought to still be able to use parts of the code in that link though.
     
  6. shekhar331

    shekhar331

    Joined:
    Nov 11, 2014
    Posts:
    10
    I need this effect so as to show reflective floors which cant be done using the normal reflective probe.. and ked80 project is exactly what I want ... but just want know if it would be for Android Devices too and wont affect performance Much
     
  7. Kronnect

    Kronnect

    Joined:
    Nov 16, 2014
    Posts:
    2,876
    It will hurt performance on mobile, but you need to try. I guess there's a ton of difference between latest models and those from 1-2 year ago.
     
  8. macdude2

    macdude2

    Joined:
    Sep 22, 2010
    Posts:
    686
    One or two render textures in a simple scene is fine on the iPad 2/ 4s and better. If you want render textures and other effects on these devices you may run into frame rate issues. Another solution is the good ole duplicate geometry trick! Would that work for you?
     
  9. shekhar331

    shekhar331

    Joined:
    Nov 11, 2014
    Posts:
    10
    The code implemented by Kode80 contains script which is attached to the camera. in my case I want only a certain part of the floor to be reflective else part should be matt finish. So i would prefer shader and a script which assigns a map reflective map to the shader every frame