private void button1_Click(object sender, EventArgs e) { var render = new HRender(); Bitmap bmp = render.Visualize(); pictureBox1.Image = bmp; bmp.Save("test.png"); }
public Color ProcessCollision(HRender render, ICollider collider, HRay ray) { return(Shader(render, collider, ray)); }
public Color ProcessCollision(HRender render, ICollider collider, HRay ray) { throw new NotImplementedException(); }
public static Color SimpleRedShader(HRender render, ICollider collider, HRay ray) { return(Color.Red); }
public static Color SimpleBlackShader(HRender render, ICollider collider, HRay ray) { return(Color.Black); }