Exemplo n.º 1
0
		public static Color4F Saturate(ref Color4F value)
		{
			return new Color4F(
				Saturate(value.R),
				Saturate(value.G),
				Saturate(value.B),
				1);
		}
Exemplo n.º 2
0
 public static Color4F Multiply(ref Color4F left, float right)
 {
     return new Color4F(
         left.R * right,
         left.G * right,
         left.B * right,
         left.A * right);
 }
Exemplo n.º 3
0
		public static Color4F Multiply(ref Color4F left, ref Color4F right)
		{
			return new Color4F(
				left.R * right.R, 
				left.G * right.G, 
				left.B * right.B, 
				left.A * right.A);
		}
        public VertexPositionColorTexture(Vector3 position, Color4F color, Vector2 textureCoordinate)
		{
			Position = position;
			Color = color;
			TextureCoordinate = textureCoordinate;
		}
Exemplo n.º 5
0
 public VertexPositionColor(Vector3 position, Color4F color)
 {
     Position = position;
     Color    = color;
 }
Exemplo n.º 6
0
        public VertexPositionColor(Vector3 position, Color4F color)
		{
			Position = position;
			Color = color;
		}
Exemplo n.º 7
0
		public static Color4F Invert(ref Color4F value)
		{
			return new Color4F(1 - value.A, 1 - value.R, 1 - value.G, 1 - value.B);
		}
 public VertexPositionColorTexture(Vector3 position, Color4F color, Vector2 textureCoordinate)
 {
     Position          = position;
     Color             = color;
     TextureCoordinate = textureCoordinate;
 }
Exemplo n.º 9
0
 public static Color4F Invert(ref Color4F value)
 {
     return(new Color4F(1 - value.A, 1 - value.R, 1 - value.G, 1 - value.B));
 }