Skip to content

Commit

Permalink
[Rendering] ShadowMapRenderer: remove unused nested class
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Feb 15, 2019
1 parent ff279b0 commit 20c5f2b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions sources/engine/Xenko.Engine/Rendering/Shadows/ShadowMapRenderer.cs
Expand Up @@ -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.