CSPspEmu.Core.Gpu.VertexReader.ReadNormalByte C# (CSharp) Method

ReadNormalByte() public method

public ReadNormalByte ( ) : void
return void
        public void ReadNormalByte()
        {
            Align1();
            VertexInfo->Normal.X = (float)((byte*)Pointer)[0];
            VertexInfo->Normal.Y = (float)((byte*)Pointer)[1];
            VertexInfo->Normal.Z = (float)((byte*)Pointer)[2];
            if (!Transform2D)
            {
                VertexInfo->Normal.X *= 1.0f / 127f;
                VertexInfo->Normal.Y *= 1.0f / 127f;
                VertexInfo->Normal.Z *= 1.0f / 127f;
            }
            PointerOffset += sizeof(byte) * 3;
        }