mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Disable alpha compare for fill cycle mode.
Fixed white screen in Rat Attack, #96
This commit is contained in:
parent
e555d6edf5
commit
7e0efdb18b
|
@ -823,7 +823,10 @@ void ShaderCombiner::updateDepthInfo(bool _bForce) {
|
|||
}
|
||||
|
||||
void ShaderCombiner::updateAlphaTestInfo(bool _bForce) {
|
||||
if ((gDP.otherMode.alphaCompare == G_AC_THRESHOLD) && !(gDP.otherMode.alphaCvgSel)) {
|
||||
if (gDP.otherMode.cycleType == G_CYC_FILL) {
|
||||
_setIUniform(m_uniforms.uEnableAlphaTest, 0, _bForce);
|
||||
_setFUniform(m_uniforms.uAlphaTestValue, 0.0f, _bForce);
|
||||
} else if ((gDP.otherMode.alphaCompare == G_AC_THRESHOLD) && !(gDP.otherMode.alphaCvgSel)) {
|
||||
_setIUniform(m_uniforms.uEnableAlphaTest, 1, _bForce);
|
||||
_setFUniform(m_uniforms.uAlphaTestValue, gDP.blendColor.a, _bForce);
|
||||
} else if (gDP.otherMode.cvgXAlpha != 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user