mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-14 07:45:06 +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
|
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;
|
return final;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue