Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Effect.World = worldScaling * worldRotation * worldTranslation;
- Effect.Alpha = Opacity;
- triangle = new[]
- {
- new VertexPositionColor(new Vector3(X0, Y0, 0), EFill),
- new VertexPositionColor(new Vector3(X2, Y2, 0), EFill),
- new VertexPositionColor(new Vector3(X1, Y1, 0), EFill),
- };
- background = new Quad(new Vector2(0, 0), new Vector2(1000, 1000), "Red", "White", 0, camera);
- background.Opacity = 0.2f;
- WindowPanel.Children.Add(background);
- triangle = new Triangle(0, -50 + 90, 20, 0 + 90, -20, 0 + 90, "Black", "Red", 1);
- triangle.Translation.X = 160;
- triangle.Translation.Y = 160;
- triangle.Translation.Z = -10;
- triangle.Opacity = 0.5f;
- WindowPanel.Children.Add(triangle0);
Add Comment
Please, Sign In to add comment