# Core Shader

## Iris Shader

The iris shader contain 3 part:

### Part 1, is build up the core looks of the iris by combining 3 layer mask

<figure><img src="https://3374031394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZW2zR4mbZfSyHYuAIWI%2Fuploads%2F5QbxI50RWgglwQuZRQ0P%2Fimage.png?alt=media&#x26;token=32bd1d53-86d6-4e4e-91b4-3eb4d2b004c8" alt=""><figcaption><p>Part 1</p></figcaption></figure>

For each layer you could choose to use texture mask/procedural mask, single color/gradient texture.\
(gradient texture could be control using my [Gradient Texture Generator](https://assetstore.unity.com/packages/tools/utilities/gradient-texture-generator-216180)\[my other asset (Free))

Then you could choose how those layer is going to combine with each other,  Additive or multiply.\
The core and second layer will combine first, then the additional layer will combine with the result of core+second layer.

Additional layer is optional, you can turn it on or off.

### Part 2, is a layer adding more detail to the iris on top of the first 3 layer in part 1

<figure><img src="https://3374031394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZW2zR4mbZfSyHYuAIWI%2Fuploads%2Fpx1jhf0LbDpCTcgKiYp1%2Fimage.png?alt=media&#x26;token=d670c0f2-d3b6-4795-8a25-17952c87b977" alt=""><figcaption><p>Part 2</p></figcaption></figure>

The are Basic and Detail pattern you could add, detail pattern could be activated as animation effect.

### Part 3, is the pupile layer

<figure><img src="https://3374031394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZW2zR4mbZfSyHYuAIWI%2Fuploads%2FFW4WunjwdIYYlpTIvSfX%2Fimage.png?alt=media&#x26;token=6b207415-8f33-4796-a0a4-eec66595b800" alt=""><figcaption><p>Part 3</p></figcaption></figure>

Add a pupil texture or use the procedural one.
