Skip to content
Permalink
Browse files

[Rendering] ShadowMapRenderer: remove unused nested class

  • Loading branch information
xen2 committed Feb 12, 2019
1 parent ff279b0 commit 20c5f2b4dcd821251115c0cdd70d16c9e1aefef7
Showing with 0 additions and 23 deletions.
  1. +0 −23 sources/engine/Xenko.Engine/Rendering/Shadows/ShadowMapRenderer.cs
@@ -285,28 +285,5 @@ private static float ComputeSizeFactor(LightShadowMapSize shadowMapSize)
var factor = (float)Math.Pow(2.0f, (int)shadowMapSize - 3.0f);
return factor;
}

public struct LightComponentKey : IEquatable<LightComponentKey>
{
public readonly LightComponent LightComponent;

public readonly RenderView RenderView;

public LightComponentKey(LightComponent lightComponent, RenderView renderView)
{
LightComponent = lightComponent;
RenderView = renderView;
}

public bool Equals(LightComponentKey other)
{
return LightComponent == other.LightComponent && RenderView == other.RenderView;
}

public override int GetHashCode()
{
return LightComponent.GetHashCode() ^ (397 * RenderView.GetHashCode());
}
}
}
}

0 comments on commit 20c5f2b

Please sign in to comment.
You can’t perform that action at this time.