Renderer · interface

EyeModel

An eye: an iris seen through a cornea, which refracts it, under a mirror-smooth highlight.

Explained in Hello world.

interface EyeModel
import type { EyeModel } from '@driftengine/core';

Properties

NameTypeDescription
kindreadonly'eye'
irisRadiusreadonlynumberThe iris's radius, in texture coordinates from the centre of the eye's map.
irisDepthreadonlynumberMetres from the cornea down to the iris.
iorreadonlynumberThe cornea's index of refraction.
corneaRoughnessreadonlynumberHow smooth the cornea's highlight is.
axisreadonlyVec3The eye's forward direction, in the mesh's own space at its bind pose.
jointreadonlynumberThe joint the eye turns with, or -1 for an eye placed by its model matrix alone.