예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var    render = new HRender();
            Bitmap bmp    = render.Visualize();

            pictureBox1.Image = bmp;
            bmp.Save("test.png");
        }
예제 #2
0
 public Color ProcessCollision(HRender render, ICollider collider, HRay ray)
 {
     return(Shader(render, collider, ray));
 }
예제 #3
0
 public Color ProcessCollision(HRender render, ICollider collider, HRay ray)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public static Color SimpleRedShader(HRender render, ICollider collider, HRay ray)
 {
     return(Color.Red);
 }
예제 #5
0
 public static Color SimpleBlackShader(HRender render, ICollider collider, HRay ray)
 {
     return(Color.Black);
 }