OgreMaterialAsset: Initial fixes to kernel rotation code, but it is still broken for some reason but should generate correct amount of shadow textures. Fix infinite loop in EC_OgreShadowSettings.