private void AddBlock(Vector3 size, Vector3 offset, Vector3 axis, float[] color) { LitMatrixBlock3 lmb1 = new LitMatrixBlock3(size, color); lmb1.SetOffset(offset); lmb1.SetAxis(axis); lmbs.Add(lmb1); }
public Stool() { LitMatrixBlock3 leftFront = new LitMatrixBlock3(new Vector3(0.05f, 0.2f, 0.05f), Colors.BLUE_COLOR); leftFront.Move(new Vector3(-0.25f, -0.1f, -0.25f)); lmbs.Add(leftFront); LitMatrixBlock3 rightFront = new LitMatrixBlock3(new Vector3(0.05f, 0.2f, 0.05f), Colors.BLUE_COLOR); rightFront.Move(new Vector3(0.25f, -0.1f, -0.25f)); lmbs.Add(rightFront); LitMatrixBlock3 leftBack = new LitMatrixBlock3(new Vector3(0.05f, 0.2f, 0.05f), Colors.BLUE_COLOR); leftBack.Move(new Vector3(-0.25f, -0.1f, -0.75f)); lmbs.Add(leftBack); LitMatrixBlock3 rightBack = new LitMatrixBlock3(new Vector3(0.05f, 0.2f, 0.05f), Colors.BLUE_COLOR); rightBack.Move(new Vector3(0.25f, -0.1f, -0.75f)); lmbs.Add(rightBack); LitMatrixBlock3 top = new LitMatrixBlock3(new Vector3(0.55f, 0.05f, 0.55f), Colors.BLUE_COLOR); top.Move(new Vector3(0.0f, -0.0475f, 0.0f)); lmbs.Add(top); }
public Cage() { bars = new List<LitMatrixBlock3>(); float height = 0.8f; float xstart = -0.8f; float xend = 0.8f; float xstep = 0.2f; float barWidth = 0.01f; for (float x = xstart; x <= xend; x += xstep) { LitMatrixBlock3 newBar = new LitMatrixBlock3(new Vector3(barWidth, 2 * height, barWidth), Colors.RED_COLOR); newBar.Move(new Vector3(x, 0f, 0.9f)); bars.Add(newBar); } for (float x = xstart; x <= xend; x += xstep) { LitMatrixBlock3 newBar = new LitMatrixBlock3(new Vector3(barWidth, 2 * height, barWidth), Colors.YELLOW_COLOR); newBar.Move(new Vector3(x, 0f, -0.9f)); bars.Add(newBar); } LitMatrixBlock3 floor = new LitMatrixBlock3(new Vector3(1.9f, 0.1f,1.9f), Colors.GREEN_COLOR); floor.Move(new Vector3(0, -0.8f, 0f)); bars.Add(floor); }
private void AddBlock(Vector3 size, Vector3 offset, float[] color) { LitMatrixBlock3 lmb = new LitMatrixBlock3(size, color); lmb.SetOffset(offset); maze.Add(lmb); }
protected override void init() { lmb = new LitMatrixBlock3(new Vector3(0.5f, 0.05f, 0.05f), Colors.RED_COLOR); }
public PlaneWing() { lmb = new LitMatrixBlock3(new Vector3(0.4f, 0.05f, 0.15f), Colors.GREEN_COLOR); }
protected override void init() { //glutSetWindowTitle("Tut_ShadowMap"); //glViewport(0, 0, (GLsizei) 512, (GLsizei) 512); //GL.Enable(EnableCap.DepthTest); GL.Enable(EnableCap.CullFace); GL.Viewport(0,0,512,512); lmb3 = new LitMatrixBlock3(new Vector3(0.1f, 0.1f, 0.1f), Colors.BLUE_COLOR); }