File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
TFE_Jedi/Renderer/RClassic_GPU Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ void main()
61
61
62
62
// Sample the texture.
63
63
baseColor = sampleTextureClamp(Frag_TextureId, Frag_Uv);
64
- if (discardPixel(baseColor, LightData.w)) { discard ; }
64
+ // if (discardPixel(baseColor, LightData.w)) { discard; }
65
65
// Either discard very close to the iso-value or
66
66
// do a two-pass filter - close cut with depth-write + alpha blend without depth-write.
67
- // if (baseColor.a < 0.48) { discard; }
67
+ if (baseColor.a < 0.48 && LightData.w < 1.0 ) { discard ; }
68
68
69
69
// Get the emissive factor (0 = normal, 1 = 100% fullbright).
70
70
#ifdef OPT_TRUE_COLOR
Original file line number Diff line number Diff line change @@ -1953,11 +1953,13 @@ namespace TFE_Jedi
1953
1953
TFE_RenderState::setDepthFunction (CMP_ALWAYS);
1954
1954
1955
1955
// Alpha blending...
1956
+ #if 0 // Disable for now.
1956
1957
if (s_shaderSettings.trueColor)
1957
1958
{
1958
1959
TFE_RenderState::setStateEnable(true, STATE_BLEND);
1959
1960
TFE_RenderState::setBlendMode(BLEND_ONE, BLEND_ONE_MINUS_SRC_ALPHA);
1960
1961
}
1962
+ #endif
1961
1963
1962
1964
s_spriteShader.bind ();
1963
1965
s_indexBuffer.bind ();
Original file line number Diff line number Diff line change 1
1
const char c_gitVersion [] = R "(
2
- v1 .09 .510
2
+ v1 .09 .512
3
3
)" ;
You can’t perform that action at this time.
0 commit comments