A prism held at the edge of a lens does three things to a photo. It replaces part of the frame with a view of somewhere else, it splits that view into colours, and it goes soft, because the glass is far inside the lens’s focus distance. The effect models those three and lets you place the glass.
Three kinds of glass
Handheld prism is the triangular bar photographers hold against the lens. It covers one side of the frame and shows the scene mirrored about its edge. With two facets you get two reflections, the second displaced further than the first.
Fractal filter is flat glass cut into parallel facets. Each facet shows a strip of the scene shifted sideways, so a subject near the glass edge repeats across it.
Kaleidoscope filter is a screw-on filter with a flat centre and angled faces around it. The middle of the frame is seen directly, and each wedge around it shows the middle again, pulled outward.
Coverage and angle
Coverage is the share of the frame behind glass. For the two side-entry styles it is measured from the edge the glass comes in from, and Angle picks that edge: 0° is the right, 90° the bottom, 180° the left, 270° the top, and anything between gives a diagonal. For the kaleidoscope filter, Coverage shrinks the clear circle and Angle rotates the ring of wedges.
A portrait reads best with the subject left clear and the glass over a third of the frame or less. Past half, the copy becomes the picture.
Shift and facets
Shift sets how far each copy is displaced, as a share of the short side. Facets sets how many faces the glass has. Every facet adds one more step of Shift, so four facets at a small shift give a fine repeat, and two at a large shift give two distinct ghost images.
Where a displaced copy would reach past the border of the photo, the picture folds back on itself instead of smearing its last row.
Dispersion
Glass bends blue light more than red. Inside the glass, the red, green and blue channels are each sampled at a slightly different displacement, which puts a red fringe on one side of every hard edge and a blue one on the other. The fringe grows with depth into the glass.
The band of spectrum along the leading edge is the part people photograph prisms for. Its brightness follows the brightness of the photo underneath it, so it shows over a window, a lamp or the sky and nearly vanishes over a dark wall.
Softness
Softness blurs what is seen through the glass and adds a slight veil, more of both further in. At 0 the copy is as sharp as the original, which reads as a mirror or a digital split. Around 35 it reads as glass. The joins between facets are rounded in the same way, so they show as a soft smear and not a cut line.
Example: a portrait with a prism on the left
Load a portrait with a light source or bright background behind the subject. Keep Handheld prism, set Angle near 180° so the glass enters from the left, and Coverage around 35. Raise Shift until the reflection brings in a part of the background you like, then move Angle a few degrees off level so the glass edge is not parallel to the frame. Two facets and Dispersion near 60 give the usual result.
Where it stops
The copy is made from the photo itself. A real prism can pull in light from outside the frame; here, everything the glass shows was already in the picture. The glass is also flat and still: there is no curved crystal ball, no moving glass on video, and no flare from a light source hitting the glass directly.