示例#1
0
        public void PackFromRgba32(Rgba32 source)
        {
            var vector = source.ToVector4();

            vector          *= 65534;
            vector          -= new Vector4(32767);
            this.PackedValue = Pack(vector.X, vector.Y, vector.Z, vector.W);
        }
示例#2
0
 public void PackFromRgba32(Rgba32 source)
 {
     this.PackFromVector4(source.ToVector4());
 }
示例#3
0
 public void FromRgba32(Rgba32 source) => this.FromVector4(source.ToVector4());
示例#4
0
 public void PackFromRgba32(Rgba32 source)
 {
     this.backingVector = source.ToVector4();
 }