mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-11 08:39:48 +12:00
[GPU] respect GPUREG_TEXENVi_SCALE
This commit is contained in:
parent
aef808cdfc
commit
a368d77005
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ const char* fragmentShader = R"(
|
|||
case 7u: final.a = 1.0 - source.b; break; // One minus source blue
|
||||
}
|
||||
|
||||
// TODO: respect GPUREG_TEXENVi_SCALE
|
||||
final.rgb *= float(1 << (u_textureEnvScale[tev_id] & 3u));
|
||||
final.a *= float(1 << ((u_textureEnvScale[tev_id] >> 16) & 3u));
|
||||
|
||||
return final;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue