| | 1 | | using UnityEngine; |
| | 2 | |
|
| | 3 | | namespace DCL.Helpers |
| | 4 | | { |
| | 5 | | public static class ShaderUtils |
| | 6 | | { |
| | 7 | | //Toon shader properties |
| 1 | 8 | | public static readonly int LightDir = Shader.PropertyToID("_LightDir"); |
| 1 | 9 | | public static readonly int LightColor = Shader.PropertyToID("_LightColor"); |
| 1 | 10 | | public static readonly int TintColor = Shader.PropertyToID("_TintColor"); |
| | 11 | |
|
| 1 | 12 | | public static readonly int GlossMatCap = Shader.PropertyToID("_GlossMatCap"); |
| 1 | 13 | | public static readonly int FresnelMatCap = Shader.PropertyToID("_FresnelMatCap"); |
| 1 | 14 | | public static readonly int MatCap = Shader.PropertyToID("_MatCap"); |
| | 15 | |
|
| | 16 | | //Lit properties |
| 1 | 17 | | public static readonly int SpecGlossMap = Shader.PropertyToID("_SpecGlossMap"); |
| 1 | 18 | | public static readonly int SmoothnessTextureChannel = Shader.PropertyToID("_SmoothnessTextureChannel"); |
| 1 | 19 | | public static readonly int SpecColor = Shader.PropertyToID("_SpecColor"); |
| 1 | 20 | | public static readonly int GlossMapScale = Shader.PropertyToID("_GlossMapScale"); |
| 1 | 21 | | public static readonly int Glossiness = Shader.PropertyToID("_Glossiness"); |
| | 22 | |
|
| 1 | 23 | | public static readonly int BaseMap = Shader.PropertyToID("_BaseMap"); |
| 1 | 24 | | public static readonly int AlphaTexture = Shader.PropertyToID("_AlphaTexture"); |
| 1 | 25 | | public static readonly int BaseColor = Shader.PropertyToID("_BaseColor"); |
| 1 | 26 | | public static readonly int Metallic = Shader.PropertyToID("_Metallic"); |
| 1 | 27 | | public static readonly int Smoothness = Shader.PropertyToID("_Smoothness"); |
| | 28 | |
|
| 1 | 29 | | public static readonly int Cutoff = Shader.PropertyToID("_Cutoff"); |
| 1 | 30 | | public static readonly int BumpMap = Shader.PropertyToID("_BumpMap"); |
| 1 | 31 | | public static readonly int BumpScale = Shader.PropertyToID("_BumpScale"); |
| | 32 | |
|
| 1 | 33 | | public static readonly int OcclusionMap = Shader.PropertyToID("_OcclusionMap"); |
| 1 | 34 | | public static readonly int OcclusionStrength = Shader.PropertyToID("_OcclusionStrength"); |
| | 35 | |
|
| 1 | 36 | | public static readonly int EmissionMap = Shader.PropertyToID("_EmissionMap"); |
| 1 | 37 | | public static readonly int EmissionColor = Shader.PropertyToID("_EmissionColor"); |
| | 38 | |
|
| 1 | 39 | | public static readonly int SrcBlend = Shader.PropertyToID("_SrcBlend"); |
| 1 | 40 | | public static readonly int DstBlend = Shader.PropertyToID("_DstBlend"); |
| 1 | 41 | | public static readonly int ZWrite = Shader.PropertyToID("_ZWrite"); |
| 1 | 42 | | public static readonly int AlphaClip = Shader.PropertyToID("_AlphaClip"); |
| 1 | 43 | | public static readonly int Cull = Shader.PropertyToID("_Cull"); |
| | 44 | |
|
| 1 | 45 | | public static readonly int SpecularHighlights = Shader.PropertyToID("_SpecularHighlights"); |
| 1 | 46 | | public static readonly int EnvironmentReflections = Shader.PropertyToID("_EnvironmentReflections"); |
| | 47 | | } |
| | 48 | | } |