Renderer · interface
EyeModel
An eye: an iris seen through a cornea, which refracts it, under a mirror-smooth highlight.
Explained in Hello world.
interface EyeModelimport type { EyeModel } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
kindreadonly | 'eye' | |
irisRadiusreadonly | number | The iris's radius, in texture coordinates from the centre of the eye's map. |
irisDepthreadonly | number | Metres from the cornea down to the iris. |
iorreadonly | number | The cornea's index of refraction. |
corneaRoughnessreadonly | number | How smooth the cornea's highlight is. |
axisreadonly | Vec3 | The eye's forward direction, in the mesh's own space at its bind pose. |
jointreadonly | number | The joint the eye turns with, or -1 for an eye placed by its model matrix alone. |