mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-11 08:39:48 +12:00
[GPU] Do scale on the final texture combiner output, not the individual sources
This commit is contained in:
parent
b854367676
commit
c9642292aa
1 changed files with 3 additions and 3 deletions
|
@ -118,9 +118,6 @@ const char* fragmentShader = R"(
|
|||
case 7u: final.a = 1.0 - source.b; break; // One minus source blue
|
||||
}
|
||||
|
||||
final.rgb *= float(1 << (u_textureEnvScale[tev_id] & 3u));
|
||||
final.a *= float(1 << ((u_textureEnvScale[tev_id] >> 16) & 3u));
|
||||
|
||||
return final;
|
||||
}
|
||||
|
||||
|
@ -162,6 +159,9 @@ const char* fragmentShader = R"(
|
|||
default: break; // TODO: figure out what the undocumented values do
|
||||
}
|
||||
|
||||
result.rgb *= float(1 << (u_textureEnvScale[tev_id] & 3u));
|
||||
result.a *= float(1 << ((u_textureEnvScale[tev_id] >> 16) & 3u));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue