Eyes: Difference between revisions
Jump to navigation
Jump to search

(Hid the advice to use EyeRefract, as Eyes is still doing fine and going strong in HL2/Source 2013 modding, while EyeRefract is tied to numerous issues) |
No edit summary |
||
Line 7: | Line 7: | ||
==Parameters== | ==Parameters== | ||
{{ | {{MatParamDef|$basetexture|texture|The texture for the sclera (the white) of the eye.}} | ||
{{ | {{MatParamDef|$iris|texture|The texture for the iris, which is a translucent decal projected over the sclera of the eye.}} | ||
{{ | {{MatParamDef|$halflambert|bool|Half-lambertian shading.}} | ||
==See also== | ==See also== | ||
* [[EyeRefract]] | * [[EyeRefract]] |
Latest revision as of 11:41, 23 August 2025


This article is about the older shader. For the succeeding shader, see EyeRefract. For the QC property of $model, see Eyeball./ For the tool, see qc_eyes.

Alyx's eyeball in Episode Two, using this shader.
Eyes
is a Vertex shader available in all Source games. It creates character eyes by defining a white sclera texture and an iris texture to be drawn on top of it.
Parameters
The texture for the sclera (the white) of the eye.
The texture for the iris, which is a translucent decal projected over the sclera of the eye.
Half-lambertian shading.