Skip to content

VKC Node Mirror

HEOMirror_1

VKC Node Mirror is placed with a Quad to implement a pseudo-mirror.

HEOMirror_2

How to Use

TLDR

1.Prepare a Quad to be used as a mirror

2.Create Texture and Material

3.Attach VKC Node Mirror to the Quad

Implementation

1. Prepare a Quad to be used as a mirror

HEOMirror_3

Create a Quad by selecting Create > 3D Object.
As VKC Node Mirror is categorized as a Node, the Quad must be a child object of the object with VKC Item Field attached.

2. Create Texture and Material

Create a Texture which width/height is formatted as the power of 2.
For example, a square 1024*1024 texture is used here. Note that the texture does not have to be a square.

As the Texture is created, prepare a material as below:

HEOMirror_5

If the intended Shader accepts textures, the material's shader does not have to be Unlit/Texture.

3. Attach VKC Node Mirror to the Quad

HEOMirror_6

Attach VKC Node Mirror to the Quad. Make sure to select the Enable Mirror.

By building world at this moment, the object will be a Mirror.

Tips

Enabling Mirror while the player is in the designated area

By attaching a Box Collider and VKC Node Collider, the mirror will be enabled only when the player is in the designated area. Set the VKC Node Collider's collider type to Area, and Collider Target to None.
If the Box Collider is not attached the mirror will be enabled regardless of player position.

HEOMirror_7

Changing Material Colors

By using color changeable shaders such as standard, the color tone on the mirror's image will change.

HEOMirror_8

HEOMirror_9

HEOMirror_10

Using the same material of VKC Node Mirror's object on other objects

Unlike video players, the same material on a different object will not display the mirror image, as only the object with VKC Node Mirror will be a mirror.

HEOMirror_11

Placing Multiple Mirrors

The object with VKC Node Mirror attached will not be displayed in another VKC Node Mirror?

Therefore, if two or more mirrors are faced, each image will not be displayed on the other, and will show the scenery behind the mirror.

Example: Placing 8 Quads with VKC Node Mirror, each rotated 45°

HEOMirror_12

HEOMirror_13

Performance when placing Mirrors

If multiple mirrors are placed with video playing in the mirror's vicinity, it may result to poorer performance on smartphones. Please consider the positions when placing mirrors.