This article's documentation is for anything that uses the Source engine. Click here for more information.

Eyes: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Source topicon}} {{lang}}
{{Source topicon}} {{lang}}
{{For|about=the obsolete shader|the succeeding shader|{{ent|EyeRefract}}|the [[QC]] property of [[$model]]|[[Eyeball]]|the tool|[[qc_eyes]]}}
{{For|about=the older shader|the succeeding shader|{{ent|EyeRefract}}|the [[QC]] property of [[$model]]|[[Eyeball]]|the tool|[[qc_eyes]]}}
{{obsolete|shader=1|replacement=[[EyeRefract]]}}
<!-- {{obsolete|shader=1|replacement=[[EyeRefract]]}} -->
{{stub}}
{{stub}}
[[File:Eye alyxep2.jpg|thumb|Alyx's eyeball in [[Episode Two]], using this shader.]]
[[File:Eye alyxep2.jpg|thumb|Alyx's eyeball in [[Episode Two]], using this shader.]]
{{this is a|s1|name=Eyes}} It creates character eyes by defining a white sclera texture and an iris texture to be drawn on top of it.
{{this is a|vertex shader|name=Eyes}} It creates character eyes by defining a white sclera texture and an iris texture to be drawn on top of it.


==Parameters==
==Parameters==
{{MatParam|$basetexture|texture|The texture for the sclera (the white) of the eye.}}
{{MatParamDef|$basetexture|texture|The texture for the sclera (the white) of the eye.}}
{{MatParam|$iris|texture|The texture for the iris, which is a translucent decal projected over the sclera of the eye.}}
{{MatParamDef|$iris|texture|The texture for the iris, which is a translucent decal projected over the sclera of the eye.}}
{{MatParam|$halflambert|bool|Half-lambertian shading.}}
{{MatParamDef|$halflambert|bool|Half-lambertian shading.}}


==See Also==
==See also==
* [[EyeRefract]]
* [[EyeRefract]]

Latest revision as of 11:41, 23 August 2025

English (en)Translate (Translate)
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.

Stub

This article or section is a stub. You can help by expanding it.

Alyx's eyeball in Episode Two, using this shader.

Eyes is a Vertex shader available in all Source 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.

See also