Exemplo n.º 1
0
 public ChannelPropagator(VoxelLightPropagator propagator, VoxelLightChannel channel)
 {
     Propagator   = propagator;
     Volume       = propagator.Volume;
     Channel      = channel;
     _propQueue   = new ConcurrentQueue <PropNode>();
     _depropQueue = new ConcurrentQueue <DepropNode>();
 }
Exemplo n.º 2
0
 public unsafe byte *GetVoxelLightDataIncludingNeighbors(int i, int j, int k, VoxelLightChannel channel)
 => GetVoxelLightDataIncludingNeighbors(new Coords(i, j, k), (int)channel);
Exemplo n.º 3
0
 public unsafe byte *GetVoxelLightDataIncludingNeighbors(Coords c, VoxelLightChannel channel)
 => GetVoxelLightDataIncludingNeighbors(c, (int)channel);
Exemplo n.º 4
0
 public SunChannelPropagator(VoxelLightPropagator propagator, VoxelLightChannel channel)
     : base(propagator, channel)
 {
 }
Exemplo n.º 5
0
 public ChannelPropagator this[VoxelLightChannel channel] => _channels[(int)channel];
Exemplo n.º 6
0
 /// <summary>Retrieve the data for a specific channel.</summary>
 public VoxelChunk.UnmanagedArray3 <byte> this[VoxelLightChannel channel] => data[(int)channel];