struct
PlanarReflectionComponent
A mirror plane: the scene re-rendered from the camera MIRRORED about this entity's plane, sampled by surfaces lying on it.
- Module
- Game
- Header
#include "Game/Components/PlanarReflectionComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Why this exists next to SSR and ray-traced reflections. SSR can only reflect what is already on screen, so a mirror shows nothing of what stands behind the camera — the one thing a mirror is for. RT reflections solve that but need hardware ray tracing and cost a trace per pixel. A planar reflection re-renders the scene ONCE per mirror and is exact for a flat surface, which is why every engine keeps it for floors, water and actual mirrors.
The plane is the entity's local XZ plane: origin at its world position, normal along its world UP. Rotate the entity to tilt the mirror.
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
float | extent | Half-size of the reflecting rectangle in the plane. Pixels outside it keep whatever SSR/probe reflection they had — the mirror has an edge, and beyond it there is no mirror to reflect in. Default 20.0f. |
float | thickness | How far off the plane a pixel may sit and still count as ON it. Depth precision and a mirror's own thickness both put the visible surface a little off the mathematical plane; too tight and the mirror flickers, too loose and the wall behind it starts reflecting. Default 0.15f. |
float | intensity | Default 1.0f. |
int32_t | resolution | Capture resolution. A planar reflection is re-rendered every frame, so this is the knob that decides what it costs. Default 512. |
Generated from Game/Components/PlanarReflectionComponent.h via game.json · Nov 5, 2026Version 1.0.0