Skip to content

PRIM_REFLECTION_PROBE_MIRROR

constant
Constant
integer PRIM_REFLECTION_PROBE_MIRROR = 4;
Other ReflectionProbeType values (2)

Used with PRIM_REFLECTION_PROBE. When enabled, objects with low-roughness PBR materials objects act as a mirror. The probe must also be a box probe (PRIM_REFLECTION_PROBE_BOX);1 the mirror plane is the probe’s local +Z face,2 and the viewer only renders the mirror probe nearest to the camera, so only one mirror is active at a time.3 Note that mirrors do not reflect avatars unless PRIM_REFLECTION_PROBE_DYNAMIC is also set. Rendering mirrors has a performance cost.

  1. Viewer 746d768339: newview/llvovolume.cpp:4528-4543; newview/llheroprobemanager.cpp:139-141 ↩

  2. Viewer 746d768339: newview/llheroprobemanager.cpp:177-181 ↩

  3. Viewer 746d768339: newview/llheroprobemanager.cpp:135-138; newview/llheroprobemanager.cpp:157-163 ↩