< Summary

Class:DCL.Helpers.ShaderUtils
Assembly:RenderUtils
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/Utils/ShaderUtils.cs
Covered lines:32
Uncovered lines:0
Coverable lines:32
Total lines:50
Line coverage:100% (32 of 32)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ShaderUtils()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/Utils/ShaderUtils.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace DCL.Helpers
 4{
 5    public static class ShaderUtils
 6    {
 7        //Toon shader properties
 18        public static readonly int LightDir = Shader.PropertyToID("_LightDir");
 19        public static readonly int LightColor = Shader.PropertyToID("_LightColor");
 110        public static readonly int TintColor = Shader.PropertyToID("_TintColor");
 11
 112        public static readonly int GlossMatCap = Shader.PropertyToID("_GlossMatCap");
 113        public static readonly int FresnelMatCap = Shader.PropertyToID("_FresnelMatCap");
 114        public static readonly int MatCap = Shader.PropertyToID("_MatCap");
 115        public static readonly int DitherFade = Shader.PropertyToID("_DitherFade");
 16
 17        //Lit properties
 118        public static readonly int SpecGlossMap = Shader.PropertyToID("_SpecGlossMap");
 119        public static readonly int SmoothnessTextureChannel = Shader.PropertyToID("_SmoothnessTextureChannel");
 120        public static readonly int SpecColor = Shader.PropertyToID("_SpecColor");
 121        public static readonly int GlossMapScale = Shader.PropertyToID("_GlossMapScale");
 122        public static readonly int Glossiness = Shader.PropertyToID("_Glossiness");
 23
 124        public static readonly int BaseMap = Shader.PropertyToID("_BaseMap");
 125        public static readonly int AlphaTexture = Shader.PropertyToID("_AlphaTexture");
 126        public static readonly int BaseColor = Shader.PropertyToID("_BaseColor");
 127        public static readonly int Metallic = Shader.PropertyToID("_Metallic");
 128        public static readonly int Smoothness = Shader.PropertyToID("_Smoothness");
 29
 130        public static readonly int Cutoff = Shader.PropertyToID("_Cutoff");
 131        public static readonly int BumpMap = Shader.PropertyToID("_BumpMap");
 132        public static readonly int BumpScale = Shader.PropertyToID("_BumpScale");
 33
 134        public static readonly int OcclusionMap = Shader.PropertyToID("_OcclusionMap");
 135        public static readonly int OcclusionStrength = Shader.PropertyToID("_OcclusionStrength");
 36
 137        public static readonly int EmissionMap = Shader.PropertyToID("_EmissionMap");
 138        public static readonly int EmissionColor = Shader.PropertyToID("_EmissionColor");
 39
 140        public static readonly int SrcBlend = Shader.PropertyToID("_SrcBlend");
 141        public static readonly int DstBlend = Shader.PropertyToID("_DstBlend");
 142        public static readonly int ZWrite = Shader.PropertyToID("_ZWrite");
 143        public static readonly int AlphaClip = Shader.PropertyToID("_AlphaClip");
 144        public static readonly int Cull = Shader.PropertyToID("_Cull");
 45
 146        public static readonly int SpecularHighlights = Shader.PropertyToID("_SpecularHighlights");
 147        public static readonly int EnvironmentReflections = Shader.PropertyToID("_EnvironmentReflections");
 148        public static readonly int Surface = Shader.PropertyToID("_Surface");
 49    }
 50}

Methods/Properties

ShaderUtils()