mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Shader recompiler: Fix dot3 RGBA
This commit is contained in:
parent
11c9279329
commit
c535ae43ee
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ void FragmentGenerator::compileTEV(std::string& shader, int stage, const PICAReg
|
||||||
|
|
||||||
if (tev.colorOp == TexEnvConfig::Operation::Dot3RGBA) {
|
if (tev.colorOp == TexEnvConfig::Operation::Dot3RGBA) {
|
||||||
// Dot3 RGBA also writes to the alpha component so we don't need to do anything more
|
// Dot3 RGBA also writes to the alpha component so we don't need to do anything more
|
||||||
shader += "float outputAlpha" + std::to_string(stage) + " = colorOutput" + std::to_string(stage) + ".x;\n";
|
shader += "float outputAlpha" + std::to_string(stage) + " = outputColor" + std::to_string(stage) + ".x;\n";
|
||||||
} else {
|
} else {
|
||||||
// Get alpha operands
|
// Get alpha operands
|
||||||
shader += "alphaOp1 = ";
|
shader += "alphaOp1 = ";
|
||||||
|
|
Loading…
Add table
Reference in a new issue