mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-12 23:15:33 +00:00
r_alias.c: GLSL: fix for fullbright pixels on alias models not respecting alpha.
e.g. fixes light_flame_small_yellow entity (progs/flame2.mdl) with alpha 0.5 showing up as solid (most of the pixels on flame2.mdl are fullbright) git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1207 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
56ec5951d0
commit
f0b0851885
1 changed files with 2 additions and 1 deletions
|
@ -186,7 +186,8 @@ void GLAlias_CreateShaders (void)
|
|||
" // apply GL_EXP2 fog (from the orange book)\n"
|
||||
" float fog = exp(-gl_Fog.density * gl_Fog.density * gl_FogFragCoord * gl_FogFragCoord);\n"
|
||||
" fog = clamp(fog, 0.0, 1.0);\n"
|
||||
" result = vec4(mix(gl_Fog.color.rgb, result.rgb, fog), result.a);\n"
|
||||
" result = mix(gl_Fog.color, result, fog);\n"
|
||||
" result.a = gl_Color.a;\n"
|
||||
" gl_FragColor = result;\n"
|
||||
"}\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue