Guest User

Untitled

a guest
Feb 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Effect.World = worldScaling * worldRotation * worldTranslation;
  2. Effect.Alpha = Opacity;
  3.  
  4. triangle = new[]
  5. {
  6. new VertexPositionColor(new Vector3(X0, Y0, 0), EFill),
  7. new VertexPositionColor(new Vector3(X2, Y2, 0), EFill),
  8. new VertexPositionColor(new Vector3(X1, Y1, 0), EFill),
  9. };
  10.  
  11. background = new Quad(new Vector2(0, 0), new Vector2(1000, 1000), "Red", "White", 0, camera);
  12. background.Opacity = 0.2f;
  13. WindowPanel.Children.Add(background);
  14.  
  15. triangle = new Triangle(0, -50 + 90, 20, 0 + 90, -20, 0 + 90, "Black", "Red", 1);
  16. triangle.Translation.X = 160;
  17. triangle.Translation.Y = 160;
  18. triangle.Translation.Z = -10;
  19. triangle.Opacity = 0.5f;
  20. WindowPanel.Children.Add(triangle0);
Add Comment
Please, Sign In to add comment