Eyes

The eye shader provides realistic rendering for eye models, enhancing your creations with lifelike visual effects.

This shader is closely tied to model UV mapping. If you need to build eyes from scratch, this shader is not recommended. For users without shader coding experience, it's advised to use the official eye geometry model in the example, simply replacing necessary textures to meet your needs. To create custom eye shader variants, refer to the Shader Lab development tutorial documentation.

Importing Eye Examples

Galacean includes built-in eye material examples to help you get started. Click here to view this example.

  1. Navigate to the editor homepage in Galacean.
  2. Select the Templates panel, browse the template interface, preview and download the eye example to your Project.

Eye Anatomy Breakdown

Before rendering eyes, understand the biological structure of the eye to better utilize the shader.

ParameterDescription
ScleraThe opaque outer layer of the eyeball, commonly known as "the white of the eye"
LimbusAlso called the corneoscleral junction, the boundary between the cornea and sclera
IrisA ring of color surrounding the pupil, forming a hollow circle
PupilThe black central part of the eyeball that allows light to enter and reach the retina
CorneaThe transparent front part of the eyeball

Eye Textures

TextureParameterDescription
Sclera TextureControls the sclera (white of the eye) color and blood vessel color around the eye. Modify this texture to add bloodshot effects.
Iris TextureControls the iris color
Iris Normal TextureSpecifies a normal map for the iris surface to control light flow
Cornea Normal TextureSpecifies a normal map for the sclera to provide subtle texture variations on the white of the eye
Sclera MaskA mask texture controlling the size of sclera/iris/limbus/pupil. R channel controls the iris area, G channel controls the limbus area, B channel controls the pupil scaling area

Material Properties

ParameterDescription
Sclera ColorSclera texture base color
Sclera SizeSclera UV scale
Sclera SpecularMetalness of the sclera (white of eye)
Sclera RoughnessRoughness of the sclera (white of eye)
Pupil DilationPupil size, adjustable in XY directions
Limbal Ring AmountIntensity of the limbus ring
Parallax LayerParallax depth effect
Iris ColorIris base color
Eye Iris SizeIris scaling size

Was this page helpful?