< Summary

Class:DCL.Skybox.RenderBackgroundColorLayer
Assembly:SkyboxEditorAssembly
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/ProceduralSkybox/ToolProceduralSkybox/Scripts/Editor/Procedural Skybox/Base Layers/RenderBackgroundColorLayer.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:41
Line coverage:0% (0 of 15)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RenderLayer(...)0%2100%
RenderHorizonLayer(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Rendering/ProceduralSkybox/ToolProceduralSkybox/Scripts/Editor/Procedural Skybox/Base Layers/RenderBackgroundColorLayer.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEditor;
 4using UnityEngine;
 5
 6namespace DCL.Skybox
 7{
 8    public class RenderBackgroundColorLayer
 9    {
 10        public static void RenderLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, SkyboxConfiguration conf
 11        {
 012            RenderSimpleValues.RenderColorGradientField(config.skyColor, SkyboxEditorLiterals.skyColor, 0, 24);
 013            RenderSimpleValues.RenderColorGradientField(config.horizonColor, SkyboxEditorLiterals.horizonColor, 0, 24);
 014            RenderSimpleValues.RenderColorGradientField(config.groundColor, SkyboxEditorLiterals.groundColor, 0, 24);
 015            RenderHorizonLayer(ref timeOfTheDay, toolSize, config);
 016        }
 17
 18        static void RenderHorizonLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, SkyboxConfiguration sele
 19        {
 020            EditorGUILayout.Separator();
 021            RenderTransitioningVariables.RenderTransitioningFloat(toolSize, ref timeOfTheDay, selectedConfiguration.hori
 22
 023            EditorGUILayout.Space(10);
 024            RenderTransitioningVariables.RenderTransitioningFloat(toolSize, ref timeOfTheDay, selectedConfiguration.hori
 25
 026            EditorGUILayout.Separator();
 27
 28            // Horizon Mask
 029            RenderSimpleValues.RenderTexture(SkyboxEditorLiterals.texture, ref selectedConfiguration.horizonMask);
 30
 31            // Horizon mask values
 032            RenderSimpleValues.RenderVector3Field(SkyboxEditorLiterals.horizonMaskValues, ref selectedConfiguration.hori
 33
 34            // Horizon Plane color
 035            RenderSimpleValues.RenderColorGradientField(selectedConfiguration.horizonPlaneColor, SkyboxEditorLiterals.ho
 36
 37            // Horizon Height
 038            RenderTransitioningVariables.RenderTransitioningFloat(toolSize, ref timeOfTheDay, selectedConfiguration.hori
 039        }
 40    }
 41}