pica: Cleanup and add some comments to lighting registers.

This commit is contained in:
bunnei 2015-11-18 23:17:25 -05:00
parent 6878ba7608
commit 6307999116
2 changed files with 19 additions and 19 deletions

View file

@ -80,7 +80,7 @@ struct PicaShaderConfig {
unsigned num = regs.lighting.light_enable.GetNum(light_index);
const auto& light = regs.lighting.light[num];
res.light_src[light_index].num = num;
res.light_src[light_index].directional = light.w != 0;
res.light_src[light_index].directional = light.directional != 0;
res.light_src[light_index].two_sided_diffuse = light.two_sided_diffuse != 0;
res.light_src[light_index].dist_atten_enabled = regs.lighting.IsDistAttenEnabled(num);
res.light_src[light_index].dist_atten_bias = Pica::float20::FromRawFloat20(light.dist_atten_bias).ToFloat32();