Apps

Refraction Bench

ThreeRTFirst-party

About

A straw in a glass of water, a glass block in front of stripes and a glass ball in front of a card of arrows, set out like the optics page of a school book. Every ray bends at each surface it crosses, so the straw breaks at the water line and the ball shows the arrows upside down; set the index to 1.0 and the glass disappears.

Controls

InputDoes
Click a piecemoves the camera in on it; again to step back
Mmakes the block and the ball glass, diamond, air or water
Tswings the block and moves the straw round the glass
Vsteps the camera through the pieces
Rback to the start

Controls

Click a piece: moves the camera in on it; again to step back; M: makes the block and the ball glass, diamond, air or water; T: swings the block and moves the straw round the glass; V: steps the camera through the pieces; R: back to the start

Remix

This package carries its source. The command makes a project from it on your Mac, with a prompt for your coding agent; Remix in ThreeRT for macOS does the same.

threert remix https://refraction.threert.app/

Versions

1 published
  1. 0.2.0current
Report this app

More from ThreeRT

All by @threert
Game1–10 players

OpenStrikeRT

A path-traced team shooter: open it and you are in a match. Two teams, three lanes, every light traced.