struct
FEyeSurfaceParams
Eye's surface parameters. None of them reach the G-Buffer directly — the renderer writes one FSurfaceRecord per drawn Eye material into the frame's surface-parameter buffer and RT3 stores only that record's index, which is what buys a lit pixel a whole struct instead of five bits.
- Module
- Renderer
- Header
#include "Renderer/Material.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
Vec3 | IrisTint | Linear multiplier on the iris diffuse seen THROUGH the cornea. Kept separate from base color so a single albedo texture can cover sclera and iris while only the iris takes the tint. Default Vec3(1.0f, 1.0f, 1.0f). |
float | CorneaIoR | Refractive index of the cornea (~1.376 in vivo). It sets both the corneal Fresnel and how far the view ray bends before it reaches the iris — the bend is the whole reason the iris needs its own normal. Default 1.376f. |
float | CorneaRoughness | Default 0.05f. |
float | IrisDepth | Anterior-chamber depth in world units: how far the iris sits behind the corneal surface. 0 collapses the eye to a painted sphere, because nothing is left for the refraction to travel through. Default 0.004f. |
float | IrisConcavity | How far the iris has flattened out of the cornea's curvature, 0..1. 0 shades the iris with the corneal normal (indistinguishable from DefaultLit); 1 faces it straight down the refracted ray. Default 0.65f. |
Vec3 | GazeAxis | The eyeball's LOCAL pupil axis. Every field above is shared by every draw of the material; this one is not, because the renderer transforms it by each draw's own model matrix. That is the whole reason the record is keyed per draw: two eyeballs on one material differ only by their transform, and a material-keyed record made both eyes stare the same way no matter where the heads were looking. Default Vec3(0.0f, 0.0f, 1.0f). |
float | IrisConeDegrees | Half-angle of the iris disc about the gaze axis, in degrees, measured from the eyeball's pivot. 0 disables the mask and the whole escaped surface is iris — exactly what shipped before the mask existed, which is why it is the default. Default 0.0f. |
float | LimbalWidthDegrees | Angular width of the limbal transition in degrees: the iris fades out across it and the ring darkens within it. Never applied at zero width — a hard angular step aliases along the limbus at any resolution. Default 2.0f. |
float | LimbalDarkening | Absorption in the limbal band, 0..1. 0 leaves the surface untouched, so an eye authored before the ring existed is unmoved. Default 0.0f. |
float | IrisRoughness | Roughness of the iris' OWN specular lobe, behind the cornea. 0 disables it: the iris shipped diffuse-only, and a lobe that appeared by default would move every existing eye. Default 0.0f. |
float | CausticStrength | Light the corneal lens focuses onto the iris — the bright crescent opposite a key light. 0 = off. Default 0.0f. |
Generated from Renderer/Material.h via renderer.json · Nov 4, 2026Version 1.0.0