Skip to content
IxxyXRPublic
forked from sonic74/RiftRay

About

Step into the worlds of Shadertoy with an Oculus Rift.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

RiftRay

An OpenXR viewer for the worlds of Shadertoy. The Windows build uses the active OpenXR runtime, including SteamVR and the Meta PC runtime, and falls back to a monitor window when OpenXR is unavailable.

Instructions

Use the keyboard, a GLFW-compatible gamepad, or OpenXR motion controllers to select a shader. Runtime selection is handled by SteamVR, Meta Quest Link, or another installed OpenXR runtime rather than by RiftRay.

Features

  • Floating AntTweakbar pane for live shader parameter editing
  • Dynamic framebuffer scaling
  • Vertical FOV adjustment(per developer guide section 8.5.4)
  • OpenXR stereo rendering with a desktop mirror
  • Monitor-only fallback when no OpenXR runtime or headset is available

Related work

Controls

Gamepads and OpenXR motion controllers are optional. The right-hand OpenXR aim pose controls the floating pane pointer when the active interaction profile provides one.

OpenXR motion controllers:

  • Left stick - Movement
  • Right stick - Smooth or snap turning
  • Triggers - Move down/up
  • A - Enter shader/return to gallery
  • B - Toggle Tweakbar pane
  • X - Click in pane
  • Y - Reset world position
  • Menu - Reset position and yaw
  • Right-stick click - Reposition pane

Keyboard:

  • Space - Recenter view
  • Enter - Enter shader/return to gallery
  • Escape - Quit
  • WASD - Movement
  • QE13 - Movement(elevation), Yaw
  • Shift/Control - Slow/fast movement
  • PgUp/PgDn - Open/Close cinemascope(letterbox)
  • Tab - Toggle Tweakbar pane
  • Backspace - Log where to enable the runtime performance HUD
  • \(Backslash) - Click in pane
  • /(Slash) - Reposition pane
  • R - Reset world position

Mouse:

  • Wheel - adjust vertical - Cinemascope | Letterbox | vFOV
  • Middle click - Toggle Tweakbar pane
  • Hold Right click & Left Click - Enter shader/return to gallery
  • Hold Left click & Wheel - Adjust render target size manually

Xbox Controller:

  • Start - Enter shader/return to gallery
  • Back - Toggle Performance HUD
  • Left analog stick - Movement
  • Right analog stick - Yaw
  • A - Move up
  • B - Move down
  • Y - Toggle Tweakbar pane
  • X - Click in pane
  • Left Bumper - Recenter view
  • Right Bumper - Reset position
  • Left Trigger - Move quickly
  • Right Trigger - Move slowly
  • Dpad - Resolution, vFOV

Acknowledgments

All shader code under shaders/shadertoy/ was written by the top developers in the field and is covered by the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-nc-sa/3.0/us/ unless stated otherwise in the code.

Huge Thanks to:

About

Step into the worlds of Shadertoy with an Oculus Rift.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages