Skip to content

Commit

Permalink
[Voxels] Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Apr 29, 2020
1 parent b372503 commit 17a5a46
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ public class VoxelVolumeProcessor : EntityProcessor<VoxelVolumeComponent>, IEnti
{
private Dictionary<VoxelVolumeComponent, DataVoxelVolume> renderVoxelVolumes = new Dictionary<VoxelVolumeComponent, DataVoxelVolume>();
public Dictionary<VoxelVolumeComponent, ProcessedVoxelVolume> processedVoxelVolumes = new Dictionary<VoxelVolumeComponent, ProcessedVoxelVolume>();
bool isDirty;
SceneSystem sceneSystem;
GraphicsDevice graphicsDevice;
CommandList commandList;

public VisibilityGroup VisibilityGroup { get; set; }
public RenderGroup RenderGroup { get; set; }
Expand All @@ -33,9 +29,6 @@ protected override void OnSystemAdd()
VisibilityGroup.Tags.Set(VoxelRenderer.CurrentRenderVoxelVolumes, renderVoxelVolumes);
VisibilityGroup.Tags.Set(VoxelRenderer.CurrentProcessedVoxelVolumes, processedVoxelVolumes);
VisibilityGroup.Tags.Set(VoxelRenderFeature.CurrentProcessedVoxelVolumes, processedVoxelVolumes);
sceneSystem = Services.GetService<SceneSystem>();
graphicsDevice = Services.GetService<IGraphicsDeviceService>().GraphicsDevice;
commandList = Services.GetService<CommandList>();
}

public override void Draw(RenderContext context)
Expand All @@ -56,19 +49,6 @@ public DataVoxelVolume GetRenderVolumeForComponent(VoxelVolumeComponent componen
return data;
}

protected override void OnEntityComponentAdding(Entity entity, VoxelVolumeComponent component, VoxelVolumeComponent data)
{
component.Changed += ComponentChanged;
}
protected override void OnEntityComponentRemoved(Entity entity, VoxelVolumeComponent component, VoxelVolumeComponent data)
{
component.Changed -= ComponentChanged;
}
private void ComponentChanged(object sender, EventArgs eventArgs)
{
isDirty = true;
}

private void RegenerateVoxelVolumes()
{
renderVoxelVolumes.Clear();
Expand Down

0 comments on commit 17a5a46

Please sign in to comment.