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());
}
}