Example #1
0
		public static Color4F Saturate(ref Color4F value)
		{
			return new Color4F(
				Saturate(value.R),
				Saturate(value.G),
				Saturate(value.B),
				1);
		}
Example #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);
 }
Example #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;
		}
Example #5
0
 public VertexPositionColor(Vector3 position, Color4F color)
 {
     Position = position;
     Color    = color;
 }
        public VertexPositionColor(Vector3 position, Color4F color)
		{
			Position = position;
			Color = color;
		}
Example #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;
 }
Example #9
0
 public static Color4F Invert(ref Color4F value)
 {
     return(new Color4F(1 - value.A, 1 - value.R, 1 - value.G, 1 - value.B));
 }