CSPspEmu.Core.Gpu.Run.GpuDisplayListRunner._OP_LT C# (CSharp) Method

_OP_LT() private method

private _OP_LT ( int Index ) : void
Index int
return void
        private void _OP_LT(int Index)
        {
            GetLigth(Index)->Kind = (LightModelEnum)Param8(0);
            GetLigth(Index)->Type = (LightTypeEnum)Param8(8);
            switch (GetLigth(Index)->Type)
            {
                case LightTypeEnum.Directional:
                    GetLigth(Index)->Position.W = 0;
                    break;
                case LightTypeEnum.PointLight:
                    GetLigth(Index)->Position.W = 1;
                    GetLigth(Index)->SpotCutoff = 180;
                    break;
                case LightTypeEnum.SpotLight:
                    GetLigth(Index)->Position.W = 1;
                    break;
                default:
                    throw(new NotImplementedException());
            }
        }
GpuDisplayListRunner