mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-03 05:35:01 -06:00
video_core: Change unimplemented gas stub behaviour for Vulkan (#2165)
This commit is contained in:
parent
4e4c7e687b
commit
4867bb2e2b
@ -72,6 +72,7 @@ void FragmentModule::Generate() {
|
|||||||
break;
|
break;
|
||||||
case TexturingRegs::FogMode::Gas:
|
case TexturingRegs::FogMode::Gas:
|
||||||
WriteGas();
|
WriteGas();
|
||||||
|
// Return early due to unimplemented gas mode
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -196,7 +197,12 @@ void FragmentModule::WriteFog() {
|
|||||||
void FragmentModule::WriteGas() {
|
void FragmentModule::WriteGas() {
|
||||||
// TODO: Implement me
|
// TODO: Implement me
|
||||||
LOG_CRITICAL(Render, "Unimplemented gas mode");
|
LOG_CRITICAL(Render, "Unimplemented gas mode");
|
||||||
OpKill();
|
// Replace the output color with a transparent pixel,
|
||||||
|
// (just discarding the pixel causes graphical issues
|
||||||
|
// in some MH games).
|
||||||
|
OpStore(color_id, ConstF32(0.f, 0.f, 0.f, 0.f));
|
||||||
|
|
||||||
|
OpReturn();
|
||||||
OpFunctionEnd();
|
OpFunctionEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user