NokiMo
RED_SIM
RED_SIM

patreon


Ultimate Mirror Shaders | VRChat Asset

Mirror is something which exists in every VRChat world. But why don't we have fancy custom mirrors yet? So, I decided to create a mirror shader with lots of useful features!

Ultimate Mirror Shaders Features:

So, this asset is for my Tier III patrons. You can download it here:

>>> DOWNLOAD ULTIMATE MIRROR SHADERS v.1.0.0 <<< 

Test the asset in this VRChat world:

>>> VRCHAT DEMO WORLD <<< 

Included prefabs

To make life easier for you, a made a bunch of example mirror prefabs, ready to use in your worlds. All of them already has built-in VRC triggers, which disables mirror on distance. Just few of them below.

Using simple Perlin noise texture you can achieve a flame effect:

Personally, love this plasma-like edges: 

You can make a smooth transition from real reflection to faked with reflection probe:  

There are some build-in color correction options:

Choose any shape:


Just drag & drop and its done

Basically, as you already have lots of pre-made prefabs, just drag and drop it into your world and it's done!

Don't forget to import the latest VRChat SDK first. Both SDK 2 and SDK 3 are supported, but prefabs are made for SDK 2 only. If you're using Udon, you'll need to implement disabling your mirror object by distance yourself.

PS: The example scene also uses Post Processing Stack 2, so be sure you downloaded it from the Unity Package Manager.

Almost all the prefabs are automatic mirrors, which activates by distance. But there is also an example prefab called "Toggle Mirror". It's an animated implementation of a mirror, that can be controlled with buttons.

How to use the shader

There are actually 3 different shaders in this pack:

So, first two shaders are similar:

Visuals

Shape

Outer Mask, Inner Mask

Outer mask controls the region which is outside the mirror's edge.

Inner mask controls the region which is inside the visible mirror shape. 

Refraction

Basically, you that's an offsetted inner mask region, which can refract the image.

Back Side

You can make your mirror double sided.

Color Correction

Tweaks the color of your final image.


Mirror Fade Shader

Actually, this shader uses almost the same properties as the two previous. Except, that you can also specify PBR options such as Smoothness and Metalness for the front mirror side too. 

Using VRC Mirror script with custom shaders

If you want to assemble your own mirror:

NOTE: Specifying the same shader in the VRC_Mirror Reflection component is mandatory, don't forget it! In other case, VRC_Mirror Reflection component will replace your material's shader to the default.

ALSO:  VRC_Mirror Reflection script does not allow you to change the mirror material properties in runtime with animator. So, to control the mirror dissolve progress, better to use the Z-scaling option.

Performance

Comparing the Ultimate Mirror and default mirror shaders:

Ultimate Mirror shader on the left and Default mirror shader on the right. As you can see, the difference is in just a ~0.05ms, which is almost unnoticeable.

Ultimate Mirror Shaders | VRChat Asset

Related Creators