Permalink
Browse files
[Rendering] ShadowMapRenderer: remove unused nested class
- Loading branch information
|
@@ -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