|
|
@ -102,6 +102,11 @@ PicaFSConfig::PicaFSConfig(const Pica::Regs& regs, const Instance& instance) {
|
|
|
|
state.tev_stages[i].modifiers_raw = tev_stage.modifiers_raw;
|
|
|
|
state.tev_stages[i].modifiers_raw = tev_stage.modifiers_raw;
|
|
|
|
state.tev_stages[i].ops_raw = tev_stage.ops_raw;
|
|
|
|
state.tev_stages[i].ops_raw = tev_stage.ops_raw;
|
|
|
|
state.tev_stages[i].scales_raw = tev_stage.scales_raw;
|
|
|
|
state.tev_stages[i].scales_raw = tev_stage.scales_raw;
|
|
|
|
|
|
|
|
if (tev_stage.color_op == TevStageConfig::Operation::Dot3_RGBA) {
|
|
|
|
|
|
|
|
state.tev_stages[i].sources_raw &= 0xFFF;
|
|
|
|
|
|
|
|
state.tev_stages[i].modifiers_raw &= 0xFFF;
|
|
|
|
|
|
|
|
state.tev_stages[i].ops_raw &= 0xF;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
state.fog_mode.Assign(regs.texturing.fog_mode);
|
|
|
|
state.fog_mode.Assign(regs.texturing.fog_mode);
|
|
|
@ -230,8 +235,9 @@ PicaFSConfig::PicaFSConfig(const Pica::Regs& regs, const Instance& instance) {
|
|
|
|
|
|
|
|
|
|
|
|
state.shadow_rendering.Assign(regs.framebuffer.output_merger.fragment_operation_mode ==
|
|
|
|
state.shadow_rendering.Assign(regs.framebuffer.output_merger.fragment_operation_mode ==
|
|
|
|
FramebufferRegs::FragmentOperationMode::Shadow);
|
|
|
|
FramebufferRegs::FragmentOperationMode::Shadow);
|
|
|
|
|
|
|
|
if (state.shadow_rendering) {
|
|
|
|
state.shadow_texture_orthographic.Assign(regs.texturing.shadow.orthographic != 0);
|
|
|
|
state.shadow_texture_orthographic.Assign(regs.texturing.shadow.orthographic != 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void PicaShaderConfigCommon::Init(const Pica::RasterizerRegs& rasterizer,
|
|
|
|
void PicaShaderConfigCommon::Init(const Pica::RasterizerRegs& rasterizer,
|
|
|
|