Udon script that exposes additional options for mirrors giving the ability to set distance based culling per layer functioning like an adjustable far clip distance. This will help with creating more optimized mirrors.
- VRCSDK3-Udon v.2022.02.16.19.13+
- VRChat-Community / Merlins Udon Sharp (v0.20.3)
- Unity 2019.4.29f1+
Add this script to any existing mirror or use the included mirror prefab.
Setting the culling distance to 0 will disable culling behaviour for that layer.
Settings used for the video example.
Nothing on this mirror is being updated. This is a normal mirror that has an internal culling distance set for players. This makes it so only players near the mirror will be rendered.
LayerDistanceMirror.mp4
AdjustingPerLayer.mp4
An example world that contains a mirror with this script applied can be found here:
https://vrchat.com/home/world/wrld_6eaf7a85-ffcb-4765-a9b6-c7e435802079