Planar Reflection with alpha

Hi

This is a mobile friendly planar reflection (realtime) shader with alpha channel that’s work on OpenGL ES 2.0+ devices.

You can download script from this link :

My shader :
Attached to post

Tutorial :


2973140–220891–PlanarReflection.zip (614 Bytes)

Garage model for download :

Another usage of this shader for mobile platforms
Realtime ground reflection + screen drop rain (animated from green screen movie):

Man your plug-in is awesome!!Thanks for making it free…

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)

Normal map added
Select Mobile->PlanarReflection shader

3047141–228520–PlanarReflection_Normal.rar (584 Bytes)
3047141–228527–PlanarReflection_Normal_2.rar (604 Bytes)

1 Like

HI,How do you implement Realtime Reflection after baking lightmap?

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

1 Like

Its very sweet of you:)

@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.

Tried checking for this asset on the store but it’s been deprecated.

link store was died. please post here. Thank

Download link for planar reflection attached to this post

See the video:

9762586–1398328–Planar_Reflection_ILK.zip (4.4 KB)

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?

It is for the built-n pipeline. So should works on every unity version

I will make URP shaders soon