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

ReadNormalShort() public method

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