Anime Eye Shader
Made for a retro 3D platformer project; we wanted the characters to be able to look around and focus on objects in the world. Using a sphere as an eyeball wouldn't work with the face geometry.
So instead, I created a shader that allowed us to specify :
- Iris color gradient (top and bottom)
- Pupil size
- Iris size
- Highlight size and position
- Values to move the eye left/right/up/down for looking
There are no textures! It's all created with math to be more flexible and reusable.