VRChat Shader Globals
VRChat provides multiple global shader parameters Shader creators can use to implement VRChat-specific features.
The following shader globals are currently available:
float _VRChatCameraMode
:0
- Rendering normally1
- Rendering in VR handheld camera2
- Rendering in Desktop handheld camera3
- Rendering for a screenshot
float _VRChatMirrorMode
:0
- Rendering normally, not in a mirror1
- Rendering in a mirror viewed in VR2
- Rendering in a mirror viewed in desktop mode
float3 _VRChatMirrorCameraPos
- World space position of mirror camera (eye independent, "centered" in VR)