citra-emu
/
citra
Archived
1
0
Fork 0

shader: Fix shadow_texture_orthographic not being set correctly. (#6937)

This commit is contained in:
Steveice10 2023-08-31 13:37:39 -07:00 committed by GitHub
parent 1159e4d928
commit 5ad58e0605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -256,9 +256,7 @@ PicaFSConfig PicaFSConfig::BuildFromRegs(const Pica::Regs& regs, bool has_blend_
state.shadow_rendering = regs.framebuffer.output_merger.fragment_operation_mode == state.shadow_rendering = regs.framebuffer.output_merger.fragment_operation_mode ==
FramebufferRegs::FragmentOperationMode::Shadow; FramebufferRegs::FragmentOperationMode::Shadow;
if (state.shadow_rendering) { state.shadow_texture_orthographic = regs.texturing.shadow.orthographic != 0;
state.shadow_texture_orthographic = regs.texturing.shadow.orthographic != 0;
}
state.use_custom_normal_map = use_normal; state.use_custom_normal_map = use_normal;

View File

@ -235,9 +235,7 @@ 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,