Beispiel #1
0
        public void ResetZBuffer()
        {
            for (int x = 0; x < Defaults.WIDTH; x++)
            {
                for (int y = 0; y < Defaults.HEIGHT; y++)
                {
                    zBuffer[x, y] = new Fragment(backGroundColor);
                    bitmap.SetPixel(x, y, backGroundColor);
                }
            }

            rasterizer = new Rasterizer(zBuffer);
        }
Beispiel #2
0
 // Contructor
 public Rasterizer(Fragment[,] zBuffer)
 {
     this.zBuffer = zBuffer;
 }