mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 06:05:40 +12:00
GLES: Fix Set logic op
This commit is contained in:
parent
fa9ce5fc70
commit
afaf18f124
1 changed files with 2 additions and 2 deletions
|
@ -715,7 +715,7 @@ void FragmentGenerator::compileLogicOps(std::string& shader, const PICA::Fragmen
|
|||
case PICA::LogicOpMode::Copy: shader += "combinerOutput"; break;
|
||||
case PICA::LogicOpMode::Nop: shader += "fb_color"; break;
|
||||
case PICA::LogicOpMode::Clear: shader += "vec4(0.0)"; break;
|
||||
case PICA::LogicOpMode::Set: shader += "vec4(uintBitsToFloat(0xFFFFFFFFu))"; break;
|
||||
case PICA::LogicOpMode::Set: shader += "vec4(1.0)"; break;
|
||||
case PICA::LogicOpMode::InvertedCopy: shader += "vec4(uvec4(combinerOutput * 255.0) ^ uvec4(0xFFu)) * (1.0 / 255.0)"; break;
|
||||
|
||||
default:
|
||||
|
@ -725,4 +725,4 @@ void FragmentGenerator::compileLogicOps(std::string& shader, const PICA::Fragmen
|
|||
}
|
||||
|
||||
shader += ";\n}"; // End of main function
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue